To install Laravel in your Linux Operating System you need to follow these steps:
- First you need to install composer. https://getcomposer.org/download/
php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php php -r "if (hash('SHA384', file_get_contents('composer-setup.php')) === '41e71d86b40f28e771d4bb662b997f79625196afcca95a5abf44391188c695c6c1456e16154c75a211d238cc3bc5cb47') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');"
- Download the Laravel installer using Composer:
composer global require "laravel/installer"
- The setup PATH:
export PATH="~/.composer/vendor/bin:$PATH"
Once installed, the
laravel new
command will create a fresh Laravel installation in the directory you specify. For instance, laravel new blog
will create a directory named blog
containing a fresh Laravel installation with all of Laravel's dependencies already installed. This method of installation is much faster than installing via Composer: laravel new blog or sudo laravel new blog
After making your first application run your application by tying this command: php artisan serve
You can also see the laravel documentation here: https://laravel.com/docs/5.2#installing-laravel
simple and easy steps to setup Laravel on Windows, check it out here,
ReplyDeletehttp://justwebcode.blogspot.com/2017/07/how-to-setup-laravel-on-windows.html