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

Popular posts from this blog

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -