Laravel is an open-source web framework for development using the Model View Controller (MVC) architecture model
To install Laravel, you will need to have Composer installed first
Installing with Laravel Installer
Downloading the installer
composer global require "laravel/installer=~1.1"
Define the path to the laravel executable so that it can be run from any directory on the filesystem
export PATH="$PATH:~/.composer/vendor/bin"
source ~/.bashrc
That's it. Now you can go to the right directory and create a new project with the command
laravel new project_name
Installing with Composer
Just execute one command
composer create-project laravel/laravel /path/to/project/folder
Information about configuring and managing the framework can be found at the Russian-language project resource
If the root folder for the site files is different from the www folder (usually, Laravel project files are in the public folder), then you can specify the desired root folder through Site Settings-Main Settings-Home Directory or write the following structure in the file .htaccess
# www/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule ((?s).*) public/$1 [L]
</IfModule>
Also (if the root folder is defined through .htaccess) you must create a .htaccess file in the public folder and put the directives in it
# www/public/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^((?s).*)$ index.php?_url=/$1 [QSA,L]
</IfModule>