laravel 5.6 all route except index says page not found on wamp php7.1.9

Posted 9 months ago by evilprogrammer

My web.php file contains

Route::get('/', function () { return view('welcome'); });

Route::get('/foo', '[email protected]'); Route::get('/bar', '[email protected]');

Both @foodie and @barbie exists and should return

dd("Hi i worked")

But surprisingly it does not recognize any other route except the default "/" on wamp but it works when using php artisan serve. I also found a post on stack where someone complained the same thing but no solution yet. Every other laravel project works fine on my wamp but laravel new 5.6 does not.

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.