Advertisement
fadlyshafa

Untitled

Feb 13th, 2020
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.42 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.     // cetak biodata
  36.     Route::get('cetak-biodata','Dashboard\Biodata_controller@cetak');
  37.  
  38.     // verifikasi peserta
  39.     Route::get('verifikasi','Dashboard\Verifikasi_controller@index');
  40.     Route::post('verifikasi','Dashboard\Verifikasi_controller@verifikasi');
  41.  
  42.     // Data peserta
  43.     Route::get('peserta','Dashboard\Peserta_controller@index');
  44.  
  45. });
  46.  
  47. Auth::routes();
  48.  
  49. Route::get('/home', function(){
  50.     return redirect('dashboard');
  51. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement