Advertisement
fadlyshafa

Untitled

Feb 14th, 2020
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.59 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.     Route::get('peserta/verifikasi','Dashboard\Peserta_controller@diverifikasi');
  45.     Route::get('peserta/belum-verifikasi','Dashboard\Peserta_controller@belum_verifikasi');
  46.  
  47. });
  48.  
  49. Auth::routes();
  50.  
  51. Route::get('/home', function(){
  52.     return redirect('dashboard');
  53. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement