Laravel Installation Set up
The Laravel framework has just a few system necessities. After all, all of those necessities are happy by the Laravel Homestead digital machine, so it is extremely advisable that you just use Homestead as your native Laravel growth surroundings.
Nonetheless, if you’re not utilizing Homestead, you will have to verify your server meets the next necessities:
- PHP >= 5.6.4
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
Putting in Laravel
Laravel makes use of Composer to handle its dependencies. So, earlier than utilizing Laravel, be sure to have Composer put in in your machine.
By way of Laravel Installer
First, obtain the Laravel installer utilizing Composer:
composer global require "laravel/installer"
Ensure that to put the $HOME/.composer/vendor/bin listing (or the equal listing on your OS) in your $PATH so the laravel executable may be positioned by your system.
As soon as put in, the laravel new command will create a recent Laravel set up within the listing you specify. For example, laravel new weblog will create a listing named weblog containing a recent Laravel set up with all of Laravel’s dependencies already put in:
laravel new blog
By way of Composer Create-Challenge
Alternatively, you may additionally set up Laravel by issuing the Composer
create mission command in your terminal:
composer create-project --prefer-dist laravel/laravel new blog
Native Growth Server
If in case you have PHP put in regionally and also you want to use PHP’s built-in improvement server to serve your software, it’s possible you’ll use the serve Artisan command. This command will begin a improvement server at http://localhost:8000:
php artisan serve
Go to : http://localhost:8000