When the time comes to install Laravel then we get lot of unnecessary and lengthy process. It offers us to get Composer first then install the Laravel. If you are new to install it then do not get panic just follow the following steps.
First Download the Php component using this command
$ sudo apt install -y php php-common php-cli php-gd php-mysqlnd php-curl php-intl php-mbstring php-bcmath php-xml php-zip
Now Install the composer using this command
$ sudo apt install composer
Now, Open the desktop using this command
$ cd Desktop
Install a new directory of Laravel Project using following command where i am creating a directory called "website". The fundamental syntax is {composer create-project laravel/laravel "YOUR WEBSITE"}
$ composer create-project laravel/laravel website
As the Directory is created then open the directory
$ cd website
Now you are ready to serve it and use this command
$ php artisan serve
It will provide you a server with another port which you can copy and run on browser.
Congratulation you have successfully install the Laravel. If you find any trouble during the installation no need to panic and look support just look the process log on Terminal and install the missing package and retry.
EmoticonEmoticon