Reputation: 395
Quick question,
EDIT: I do not know how to access other routes besides '/' Here are the routes I want to access
Route::get('/', 'HomeController@index');
Route::get('users', 'UserController@index');
Route::get('foo', function()
{
return 'Hello World';
});
Here is my routes. Via php artisan routes
I can successfully access localhost/cartraderlaravel/public It takes me to HomeController@index
when I try to access foo or users I get
I have tried
localhost/cartraderlaravel/public/users localhost/cartraderlaravel/users localhost/cartraderlaravel/foo localhost/cartraderlaravel/public/foo
All of these return a "Not Found" error. Help anyone?
Upvotes: 0
Views: 304
Reputation: 6351
You should point your root directory to cartraderlaravel/public in WAMP so that you need not to visit localhost/cartraderlaravel/public. To do that in WAMP follow :
Upvotes: 1
Reputation: 395
Further research shows this is a common problem with WAMP. Something to do with Apache settings. I have moved to using a virtual network and everything works now
Upvotes: 0