Split your routes into separate files

[norebro_social_networks icon_layout=”boxed”]

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');
https://www.kodeinfo.com
Comments to: Split your routes into separate files

    Your email address will not be published. Required fields are marked *

    Attach images - Only PNG, JPG, JPEG and GIF are supported.

    Stay connected

    Categories

    Newsletter

    Tags

    Recent Comments

      Recent Posts

      Recent Comments

        Archives

        Categories

        Meta