Laravel 11 project setup on localhost using breeze with blade step by step
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
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
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.
Random Code Snippet Queries: Laravel
- How to get file extension from input type file in laravel
- How to create event and listener in laravel ?
- Add class to body in laravel view
- How to get count of all records created at yesterday
- Route prefix with auth middleware in laravel
- How to get the random value form a specific column in laravel ?
- How to get specific columns using Laravel eloquent methods
- How to add a key value pair to existing array in laravel
- How to decrypt laravel password
- How to check record exist or not in relationship table
- How to pass external link in laravel blade to anchor tag
- Root composer.json requires php ^7.3 but your php version (8.0.0) does not satisfy that requirement
- Method chaining in Laravel
- Class "App\Http\Controllers\Auth\Verified" not found
- Global scope in Laravel with example
- How to Access Array in blade laravel
- Get latest record by created at in Laravel
- The POST method is not supported for this route. Supported methods: PUT.
- Best Practices for Error Handling in Production Server Code (example code)
- How to create pivot table in laravel using migration
- How to create static page in Laravel
- Update if exist else insert new record in laravel
- Get content from web URL in laravel
- Laravel get single row by id
- On delete set foreign id column value null using migration in laravel 8