Laravel is a free PHP framework created by Taylor Otwell and intended for the development following the MVC pattern.
Laravel has many features but this post is to teach you how to install and run your first website using this framework.
First thing that you’ll need is to install the Composer.
Go to https://getcomposer.org/download/ and look for an executable file if you’re using Windows. The lastest composer version will be installed.
Done! You don’t need to restart your machine.
To initialize a new Laravel project, I created these folders:
Type this command to create your project:
composer create-project --prefer-dist laravel/laravel courseLaravel 5.3
“courseLaravel” is the project name and “5.3” is the Laravel version I want to use.
If it’s the first time you’re creating a Laravel project it may take a while.
The folder “courseLaravel” contains the project you’ve just created.
To run the project, use the command line inside the courseLaravel folder:
php artisan serve
Copy the url informed and past in your browser.
Now your Laravel project is already running.