Advertisement
CHaNStar

il 1

Mar 17th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.07 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('welcome');
  16. });
  17. Route::get('/contohkesatu', function () {
  18.     return view('contohkesatu');
  19. });
  20. Route::get('/contohkedua', function () {
  21.     return view('contohkedua');
  22. });
  23. Route::get('/contohtiga', function () {
  24.     return view('contohketiga');
  25. });
  26.  
  27. Route::get('/belajar', 'SiswaController@index');
  28.  
  29. Route::get('/kelas', 'KelasController@index');
  30.    
  31. Route::get('/contoh', function () {
  32.     echo 'Nah ini adalah contoh ke 1 ya';
  33. });
  34. Route::get('/contoh2', function () {
  35.     echo 'Yang selanjutnya contoh ke 2 ok';
  36. });
  37. Route::get('/contoh3', function () {
  38.     echo 'Ok Terakhir contoh yang ke 3';
  39. });
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.    
  47. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement