Laravel 11 project setup on localhost using breeze with blade step by step

Created at 15-Mar-2024 , By samar

1. First Create laravel 11 project using composer command

composer create-project laravel/laravel laravel11-starter

Or you can also specify the version with composer create-project command

composer create-project laravel/laravel:^11.0 laravel11-starter

2. Move to project directory

cd laravel11-starter

3. Open code in visual studio code using below command

code .

4. Create database using phpmyadmin or using mysql command

creating database using mysql command Open terminal and hit the below command and please be sure to make changes as per your requirements like the name of database user.

mysql -u root -p

Create database using below command.

create database laravel11_starter;

4. Add database configuration details in .env file

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel11_starter
DB_USERNAME=root
DB_PASSWORD=password

5. Add laravel breeze starter package to your laravel 11 application

composer require laravel/breeze --dev

6. Install breeze and choose blade option

php artisan breeze:install

7. Run below command to migrate

php artisan migrate

8. Now run the php artisan serve command to run the server

php artisan serve

Now visit localhost:8000 in your browser to open the application

http://localhost:8000

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

Don't forget to share this article! Help us spread the word by clicking the share button below.

We appreciate your support and are committed to providing you valuable and informative content.

We are thankful for your never ending support.