routes - Laravel 5.3 web.php not working -
i'm web developer. in routes/web.php
route::group(['middleware' => ['web']], function () { route::get('/', 'homecontroller@index'); route::get('news/index', 'newscontroller@getindex'); });
if running http://localhost/project/public/news/index has no action. me!
can clarify? controllers exist? code works good:
route::group(['middleware' => ['web']], function () { route::get('/', function () { echo 'one'; }); route::get('news/index', function () { echo 'two'; }); });
so problem controllers, or maybe apache configuration.
Comments
Post a Comment