How can you download and install Laravel by the composer?
Laravel Installation Steps:
- If you don’t have a composer on a system, download a composer from https://getcomposer.org/download/
- Open command prompt
- Go to the htdocs folder
- Run the below command under C:\xampp\htdocs>
- After you have installed PHP and Composer, you may create a new Laravel project via the Composer
create-project
command: composer create-project laravel/laravel example-app - Or, you may create new Laravel projects by globally installing the Laravel installer via Composer: composer global require laravel/installer laravel new example-app
- After the project has been created, start Laravel's local development server using the Laravel's Artisan CLI
serve
command: cd example-app php artisan serve - Once you have started the Artisan development server, your application will be accessible in your web browser at
http://localhost:8000
.
Leave a comment
No Cmomments yet