Advertisement
apl-mhd

Route Group

May 23rd, 2019
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 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.  
  18.  
  19. Route::group(['prefix'=>'admin', 'namespace'=>'Backend'],function (){
  20.  
  21.     Route::get('orko', function (){
  22.         return 'orko';
  23.  
  24.     });
  25.  
  26.     Route::get('orko2', 'HomeController@index');
  27.  
  28. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement