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 avoid duplicate entries in pivot table in Laravel
- Laravel create multiple records in Pivot table
- Get products with number of orders in Laravel
- How to create controller in laravel
- Define variable and use in Laravel controller method
- Conditional validation in laravel
- How to customize or Change validation error messages
- Json encode method in laravel
- Remove array keys and values if it does not exist in other array in Laravel
- Class App\Http\Controllers\Admin\UserController Does Not Exist
- How to get only time from created_at in laravel
- How to add background image to div using Tailwindcss, Vite in Laravel Environment
- Redirect to another view from controller in laravel
- How to get count of all records created at yesterday
- Update last created record in Laravel
- How to authenticate admin users in Laravel ?
- Laravel specific table Migration
- Method chaining in Laravel
- How to send ID to another page in Laravel
- How to insert dynamic values to additional column with pivot column in pivot table on multiple records
- How to display user profile after login in laravel
- OrderBy on Eloquent relationships method in Laravel
- How to print form data in laravel
- Show old value while editing the form in Laravel
- How to display 1 day ago in comments in laravel view