Laravel is a MVC framework developed in PHP. It is a simple and easy framework, having many plugins or libraries for the web applications. In today’s world, Laravel is the best PHP framework for developing business web application. Here we provide the startup guide for beginners of Laravel framework.
Make sure that the following is installed in your system:
– PHP version greater than or equal to 7
– OpenSSL PHP Extension
– PDO PHP Extension
– Mbstring PHP Extension
– Tokenizer PHP Extension
– XML PHP Extension
– MySql version greater than or equal to 5.5 or any other DB
Laravel 5.5 Installation
You need composer to install laravel in your system. If you don’t have “composer” then please get it and install it from https://getcomposer.org/. Please make sure that composer path is set in the windows ‘Environment Variables’ Eg, PATH = C:\Users\Admin\AppData\Roaming\Composer\vendor\bin
Create the directory for your project Eg, G:\xampp\htdocs\laravel_project
Then open your command prompt using the following method:
– To open ‘run’ popup, press windows key + R key
– In the text box of opened window, type ‘cmd’ and click ‘ok’
In the command prompt, Change the path to G:\xampp\htdocs\laravel_project and type the following command.
composer create-project --prefer-dist laravel/laravel project_name
The laravel is now installed in your “laravel_project/project_name” directory
Run The Project
Now run the following URL in your browser and the laravel page will be shown.