Split your routes into separate files
All routes in one file will be a cumbersome so its a good practise to divide admin,members,testing routes into separate files . In this way you can easily add your custom functions and events listeners .
<?php
require_once __DIR__ . '/functions.php';
require_once __DIR__ . '/events.php';
require_once __DIR__ . '/routes-admin.php';
require_once __DIR__ . '/routes-test.php';
Route::get('/', 'HomeController@index');
Route::get('/search', 'HomeController@search');
No Comments
Leave a comment Cancel