filmov
tv
Install Laravel 9 Project in Xampp on Localhost with database setup
Показать описание
Install Laravel 9 Project in Xampp on Localhost with database setup
1. Open installed xampp on your system
2. Start Apache & mysql
NOTE: If you have not installed xampp yet then watch my viddeo on installing xampp
3. Now create folder in xampp/htdocs with any name like I have laravel9
4. For installing laravel you have to run composer command and we have not installed it yet
5. Install composer by running composer commands
6. Open browser and search composer
7. Open Windows Shell Command Interface
8. Redirect to your project directory
Now if you have not setup php commands in your xampp or windows then watch my video
9. Run following commands:
9. Now we have composer environment setup.
10. Run following command to install laravel
Now open htdocs/laravel9 (project folder)
11. Copy files from laravel9 folder to root folder of laravel9
12. Run following command to run laravel project
php artisan serve
Now setup database for laravel project
14. create a new database with your required name
15. Now go to your project root directory and open a file named as .env
16. Here you will find setting of mysql database
17. Change database name to your database name
18. Save and close the file
19 Now open windows shell and run this command
php artisan migrate
20. If your database connection is established then this will create database required files of laravel
in your database.
21. Go to phpmyadmin and refresh the database
22. All setup.
Now you have a laravel project setup with database and you can modify it as per your requirements.
Have a great coding....
#laravel9 #laraveltutorial #database #migration #laravel #laravelinstall #phplaravel #phpscripts #php8
1. Open installed xampp on your system
2. Start Apache & mysql
NOTE: If you have not installed xampp yet then watch my viddeo on installing xampp
3. Now create folder in xampp/htdocs with any name like I have laravel9
4. For installing laravel you have to run composer command and we have not installed it yet
5. Install composer by running composer commands
6. Open browser and search composer
7. Open Windows Shell Command Interface
8. Redirect to your project directory
Now if you have not setup php commands in your xampp or windows then watch my video
9. Run following commands:
9. Now we have composer environment setup.
10. Run following command to install laravel
Now open htdocs/laravel9 (project folder)
11. Copy files from laravel9 folder to root folder of laravel9
12. Run following command to run laravel project
php artisan serve
Now setup database for laravel project
14. create a new database with your required name
15. Now go to your project root directory and open a file named as .env
16. Here you will find setting of mysql database
17. Change database name to your database name
18. Save and close the file
19 Now open windows shell and run this command
php artisan migrate
20. If your database connection is established then this will create database required files of laravel
in your database.
21. Go to phpmyadmin and refresh the database
22. All setup.
Now you have a laravel project setup with database and you can modify it as per your requirements.
Have a great coding....
#laravel9 #laraveltutorial #database #migration #laravel #laravelinstall #phplaravel #phpscripts #php8
Комментарии