sandytesar

web.php

May 16th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.05 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.     return view('chap5.home');
  16. });
  17.  
  18. Route::get('about', function () {
  19.     $halaman='about';
  20.     return view('chap5.about', compact('halaman'));
  21. });
  22.  
  23. Route::get('karyawan', 'KaryawanController@index');
  24. Route::get('karyawan/create', 'KaryawanController@create');
  25. Route::get('karyawan/{karyawan}', 'KaryawanController@show');
  26. Route::post('karyawan', 'KaryawanController@store');
  27. Route::get('karyawan/{karyawan}/edit', 'KaryawanController@edit');
  28. Route::patch('karyawan/{karyawan}', 'KaryawanController@update');
  29. Route::delete('karyawan/{karyawan}', 'KaryawanController@destroy');
  30. Route::get('carikaryawan','KaryawanController@search');
Advertisement
Add Comment
Please, Sign In to add comment