0

I installed Laravel (in W10/Wamp3.3/PHP5.6) using Composer and created a new project with the following command:

laravel new my_project

Project doesn't have a welcome page, opens file-list directly. So I decided to try my chance on creating a new controller and create a route.

php artisan make:controller Hello

And my route in routes/web

Route::get('/hello', 'HelloController@index');

I also cleared the route cache:

php artisan route:clear

Created the controller with no methods. myproject/hello shows nothing.

What am I missing? File permissions or wamp based problem?

There's a question related with this but it's more like a server problem.

tolga
  • 2,462
  • 4
  • 31
  • 57

1 Answers1

1

Few causes for this that I've run into. Most likely one is going to be the server pointing to the incorrect directory. What I would do to test is run php artisan serve from the root of the project. This will open up a server pointing to public directory. If this functions correctly then you have confirmation.

Brandon Korenek
  • 167
  • 3
  • 14