Advertisement
fadlyshafa

Untitled

Feb 6th, 2020
473
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.89 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Web Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register web routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | contains the "web" middleware group. Now create something great!
  11. |
  12. */
  13.  
  14. Route::get('/', function () {
  15.     $title = 'Sangcahaya.com | PPDB';
  16.     return view('welcome',compact('title'));
  17. });
  18.  
  19. Route::get('keluar',function(){
  20.     \Auth::logout();
  21.     return redirect('/');
  22. });
  23.  
  24. Route::get('ppdb','Ppdb_controller@index');
  25. Route::post('ppdb','Ppdb_controller@store');
  26.  
  27. Route::group(['middleware'=>'auth'],function(){
  28.  
  29.     Route::get('dashboard','Dashboard\Beranda_controller@index');
  30.  
  31. });
  32.  
  33. Auth::routes();
  34.  
  35. Route::get('/home', function(){
  36.     return redirect('dashboard');
  37. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement