Advertisement
fadlyshafa

Untitled

Feb 8th, 2020
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.09 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.     Route::get('biodata','Dashboard\Biodata_controller@index');
  32.     Route::post('biodata/{users}','Dashboard\Biodata_controller@store');
  33.     Route::put('biodata/{users}','Dashboard\Biodata_controller@update');
  34.  
  35. });
  36.  
  37. Auth::routes();
  38.  
  39. Route::get('/home', function(){
  40.     return redirect('dashboard');
  41. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement