laravel 5 's routes.php contains this code
Route::controllers([
'auth' => 'Auth\AuthController',
'password' => 'Auth\PasswordController',
]);
i have arranged my code in modules folder so every module has its own folder with controller and everything with a separate routes.php , i have created a custom module named Auth inside my modules folder , and it's routes.php content is
Route::group(['prefix' => 'auth',
'namespace' => 'Modules\Auth\Http\Controllers'], function ()
{
Route::get('login', 'AuthController@index');
});
now when i try to access http://ift.tt/1BHrCit my custom route do not get called , due to routes defined inside laravel's default routes.php ,how can i make my route work without touching laravel's routes.php
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire