Hello!
The whole day I toiled with the installation of Laravel 5. Was not able to solve the problem.
Install Laravel:
composer create-project laravel/laravel --prefer-dist
OK! Try to go to /laravel
You don't have permission to access /laravel/ on this server.
Do .htaccess in root directory location so he tossed into the public folder:
<ifmodule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
</ifmodule>
OK! Now when entering /laravel everything is OK.
Initially there have already harvested controllers, for example WelcomeController.php
Prescribed route:
Route::get('/', 'WelcomeController@index');
Try to go to /laravel
And nothing happens, just blank white screen. And it should seem greeting Laravel 5.
I tried to do your controllers, just as it turns out, I do not understand what the problem is.
.htaccess in the public directory location is:
<ifmodule mod_rewrite.c>
<ifmodule mod_negotiation.c>
Options-MultiViews
</ifmodule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</ifmodule>
I would be grateful for any help!