Install and Configure Laravel

Pinakamehta
1 min readMay 5, 2021
  1. Install composer which is used to handle all required dependencies from this Link.
  2. After installing the composer, you can check the composer was successfully installed or not by running the composer command in the terminal. If it was successfully installed then you can see output like below.

3. Now, you can install Laravel by running below command

composer create-project laravel/laravel <application name>

4.After successfully install Laravel move to the directory (which you enter as application name in install command) and copy .env.example as .env and set some basic details as per your configuration like: database, email, etc…

5. After, set all information again from the terminal run the below command

php artisan key:generate

It will generate an app key for your project. That key is responsible for encryption and hashing data. Every Data you encrypt in your application is using APP_KEY behind the scene.

6. Now, installation and configuration are done you can test your First Laravel Application by running the below command.

php artisan serve

Enter this URL in your browser and you can see the welcome page of your application.

--

--

Pinakamehta

Sr. S/W Engineer | Full Stack Web @Moweb Technologies