php-laravelHow do I set up a Laravel project with XAMPP on a Windows machine?
- Download and install XAMPP from https://www.apachefriends.org/download.html
- Install Composer from https://getcomposer.org/download/
- Open XAMPP control panel and start Apache and MySQL
- Create a new folder in the XAMPP/htdocs directory and open a command prompt in the folder
- Run the following command to create a new Laravel project:
composer create-project --prefer-dist laravel/laravel projectname
- Go to the projectname/config/ folder and open the database.php file
- Update the MySQL connection details in the file to connect to the XAMPP MySQL server.
Code explanation
**
- composer create-project --prefer-dist laravel/laravel projectname: This command will create a new Laravel project in the specified directory.
## Helpful links
- https://www.apachefriends.org/download.html: Download link for XAMPP
- https://getcomposer.org/download/: Download link for Composer
More of Php Laravel
- How do I use Laravel traits in PHP?
- How can I use the Laravel Query Builder to write a query in PHP?
- How can I print to the console using Laravel and PHP?
- How can I generate a PDF from HTML using Laravel and PHP?
- How can I use the @yield directive in PHP Laravel?
- ¿Cómo configurar PHP y Laravel desde cero?
- How do I set up a Laravel worker using PHP?
- How do I use the GROUP BY clause in a Laravel query using PHP?
- How do I use a template in Laravel with PHP?
- How do I use Redis with Laravel in PHP?
See more codes...