Install laravel on windows or ubuntu. In this article , We’ll show you how to Install Laravel 5.8, 5.7 & 5.6 Framework on Windows or Ubuntu system step by step and create a first laravel 5.8, 5.7 & 5.6 application. Install Laravel on Windows or Ubuntu in a matter of minutes.
What is Laravel?
Laravel is free open source “PHP framework” based on MVC design pattern .
It is created by Taylor Otwell. Laravel provides expressive and elegant syntax that helps in creating a wonderful web application easily and quickly.
What’s New in Laravel 5.8
- Securing Laravel APIs with Auth0
- Laravel Dump Server Integration
- Laravel Nova
- Guest User Gates / Policies
- Email Verification
- Optional Email Verification
- URL Generator & Callable Syntax
- Improved Error Messages
- Testing Artisan Commands
Install Laravel with Composer
- Download and Install Composer
- System Requirement
- Create Project
- Start Development Server
If you are working with Ubuntu then Must Read, How to install composer in ubuntu Click Here
If you are working with Window then Must Read, How to install composer in windows Click Here
The Laravel framework has a few system requirements. Before we will install laravel 5.8 on windows, read some system requirements.
- PHP >= 7.1.3
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
- Ctype PHP Extension
- JSON PHP Extension
- BCMath PHP Extension
Install Laravel 5.8
Go to your desire directory where you want to install the laravel 5.8 project then type the below command in command prompt. It will install laravel 5.8 fresh setup on your system.
composer create-project --prefer-dist laravel/laravel blog
Wait for Laravel install
After successfully install laravel setup. go to your directory and type the below command
sudo chmod -R 777 storage
sudo chmod -R 777 bootstrap
Start Development Server
In this step to use the php artisan serve command .it will start your server locally
php artisan serve
If you want to run the project diffrent port so use this command
php artisan serve --port=8080
You have successfully install laravel, Now Go to the browser and hit the
URL : http://localhost:8000/blog
If you are not run php artisan server command , direct go to your browser and type the url
URL : http://localhost/blog/public/
Laravel Installation Process completed go to the browser and hit URL. http://localhost/project-name /public/, you will be see.
You have successfully install latest version laravel on windows with composer.
If you have any questions or thoughts to share, use the comment form below to reach us.