DEV Community

Cover image for How to install laravel 9
shani singh
shani singh

Posted on

How to install laravel 9

Install Laravel 9 In Local

Today I am going to explain how you can Install Laravel 9.

Laravel Installation Guide.

Laravel documented the Installation Guide you can read the document to get more details.

Tech Requirement

  • PHP 8.0.2
  • MySql
  • Composer

Install Via Composer

Create First Laravel 9 Project

composer create-project laravel/laravel first-laravel9
Enter fullscreen mode Exit fullscreen mode

Now GO to the Installed Directory

cd first-laravel9
Enter fullscreen mode Exit fullscreen mode

Next to serve application

php artisan serve
Enter fullscreen mode Exit fullscreen mode

You can use Laravel Valet to setup local development environment in macOs.

All Set, Click on served Link and you can see output as below.

Laravel 9

The Installation Tutorial is below in the video.

If you face any issue while installing, please comment your query.

Thank You for Reading

Reach Out To me.
Twitter
Instagram
TechToolIndia YouTube Channel

Latest comments (3)

Collapse
 
nannkahlarhlaing profile image
NannKahlarHlaing

When I run this command "composer create-project laravel/laravel blog", there is some issues -
In Git.php line 471:

Failed to execute git clone --no-checkout C:/Users/Nann/AppData/Local/Compo
ser/vcs/https---github.com-laravel-laravel.git/ C:\xampp\htdocs\blog --diss
ociate --reference C:/Users/Nann/AppData/Local/Composer/vcs/https---github.
com-laravel-laravel.git/ && cd /D C:\xampp\htdocs\blog && git remote set-ur
l origin -- github.com/laravel/laravel.git && git remote add compos
er -- github.com/laravel/laravel.git

fatal: destination path 'C:\xampp\htdocs\blog' already exists and is not an
empty directory.
Note: But I don't have this directory.

Collapse
 
valk_90 profile image
Peter

Something is not quite right when I run the first command
[ composer create-project laravel/laravel first-laravel9 ]

In ProjectInstaller.php line 75:

mkdir(): Permission denied

Something is blocking the Permission

And I wouldn't know where and how to adjust this

Collapse
 
shanisingh03 profile image
shani singh

Hey Peter,
It's your local computer permission,
The directory you are installing should have proper permissions to create folders.
hope this will help you.
thanks