Install Laravel 9 Project in Xampp on Localhost with database setup

preview_player
Показать описание
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
Рекомендации по теме
Комментарии
Автор

Thank you for this simple tutorial you did. It has truly helped solve the challenge I was having setting laravel up on my localhost

obinnachijindu
Автор

Thank you for this tutoriel. I was searching everywhere in the web but i didn't find a good teacher... I think with you i shall learn more. Thank you so much

barakakinywasoftwaredevelo
Автор

hi my project didnt have server.php on htdocs? where i can find it

doditdito
Автор

That's a banging music you got there 🤣

RoshanBhusal-giut
Автор

Nice video, by the way what is the name of the song?

isaacsolivan
Автор

i am getting this error . The zip extension and unzip/7z commands are both missing, skipping.

riteshpadaya
Автор

after 10 point there are some confusion can you please explain

studystudy
Автор

Thank you for this simple tutorial you did. It has truly helped solve the challenge I was having setting laravel up on my localhost

obinnachijindu