In this tutorial you will learn about the Install Laravel 8 with Composer on macOS, Ubuntu and Windows and its application with practical example.
In this Install Laravel 8 with Composer on macOS, Ubuntu and Windows tutorial I will show you how to install latest Laravel 8 version with Composer on your system. In this tutorial you will learn to install latest Laravel 8 with Composer on your local system. In this article I will guide you through example how to setup Laravel 8 project using Composer on your localhost system.
Install Laravel 8 with Composer on macOS, Ubuntu and Windows
In this step by step tutorial I will demonstrate you with example how to install Laravel 8 version with Composer on your system. Please follow the instruction given below:
- HTTP Client
- Laravel Airlock
- Custom Eloquent Casts
- Blade Component Tags & Improvements
- Route Caching Speed Improvements, etc.
Install Composer using Homebrew
1 |
brew install composer |
Run the following command to check the installed Composer version.
1 |
composer -v |
You will see the similar output:
Install Laravel Project
Create a fresh laravel project, download and install Laravel 8 using the below command
1 |
composer create-project --prefer-dist laravel/laravel new-laravel-project |
Once the installation proecess is completed then run the following command to get into the Laravel project folder.
Run Laravel Application
Now we are ready to run our example so lets start the development server using following artisan command –
1 |
php artisan serve |
Now, open the following URL in browser to see the output –
1 |
http://127.0.0.1:8000 |
Laravel application by default starts on port 8000 however you can change it by executing followign command.
1 |
php artisan serve --port=8888 |
Now, open the following URL in browser to see the output –
1 |
http://127.0.0.1:8888 |