dimanche 13 mars 2016

Laravel 5 Modular route files

I'm using Laravel 5.1 and the modular package: http://ift.tt/1M0Qhoe

I created an admin modul with the following route file:

Route::group(array('module' => 'Admin', 'namespace' => 'App\Modules\Admin\Controllers'), function() {

Route::get('admin/test', 'AdminController@createTestView');

}); 

When I call http://localhost/admin/test it redirects me to the test view. When I call http://localhost/admin/test2 it redirects me to my 404.blade.php file which I create for pages which does not exist anymore.

When I call http://localhost/admin I get the following error message in the browser: "The requested resource /Site was not found on this server."

Any ideas why it does not redirect to the 404.blade.php site? Thank you



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire