How to install laravel is fairly easy. A beginner like can do it. Working on dependencies, Laravel uses PHP composer. You need to install Composer in your computer before installing Laravel.
First – Visit the following link and download composer to install it to your system.
Next – After the Composer is installed, you can check if it’s installed properly in your system by typing “composer” in your command prompt.
Next – Create a directory inside your working location, if you’re using XAMPP then go to C:/xampp/htdocs then create a folder. name it as the name of your project. I would name mine “laravel” so the directory would be C:/xampp/htdocs/laravel.
Open Command Prompt then go to the directory you just created, once inside, type the following code to start installing Laravel composer create-project laravel/laravel –-prefer-dist
Wait for it to finish the install.
Next – To start the laravel service, type the following inside your laravel directory. php artisan serve
You may need to restart your computer after installing Composer.
Finish – Make sure that Apache server is running, go to your browser and type localhost/laravel/laravel/public/ for my project