Welcome to my Blog. Hold your coffee till the blog's end.
Laravel is one of the great PHP framework to build web applications. Laravel comes with a range of advantages over other PHP frameworks. It is open source and entirely free. This makes it a preferred option for making customizations or adding new packages or functionalities.
Here are some statistic where you can predict the future of Laravel.
If you want know more information about the statistic.
Please go to https://www.similartech.com/technologies/laravel
Now let’s start our journey in Laravel framework. In this blog we will install and setup Laravel.
Xampp is the most popular PHP development environment. It is completely free, easy to install Apache distribution containing MariaDB, PHP, and Perl.
We are going to install this Xampp. We know Laravel need PHP support. It will run in server and store data to database and both are included in Xampp.
Download Xampp from here: https://www.apachefriends.org/download.html
Install the latest PHP version. Laravel depends on PHP version. So when you are going to install Laravel also check the version. Here we will install Laravel 7.
Click on downloaded Xampp.exe file. You will notice a warning. Like this
Just click on Yes.
Now just click on “Next”.
Select the components to install with XAMPP. Actually we only need Apache, MySQL, and PhpMyAdmin. But here, I have selected all.
Now select the installation folder where all files will store.
At the end you did it. You have successfully installed Xampp on your machine.
The composer is an application-level package manager for the PHP programming language that provides a standard format for managing dependencies of PHP software and required libraries. So we need to install the composer before installing Laravel. Just follow the below URL and download the Composer-Setup.exe file. Get Composer
Go to the website then click on the selected “Composer-Setup.exe” and download the file.
Open the exe file and then click next.
Now keep clicking on “Next” and it will install the composer.
Install Laravel by issuing the Composer create-project command in your terminal.
Open your terminal and write down the below command
composer create-project --prefer-dist laravel/laravel:^7.0 yourproject
Like this in your command prompt.
It's on rolling.
Go to your project folder using
cd command in cmd.
Now locally we will start our application using below command,
php artisan serve
By default your application will open at 8000 port
http://localhost:8000 paste it in your web browser.
You have successfully installed Laravel on your machine.
Here we have installed Xampp for server (PHP) support, composer (for easy install PHP packages), Laravel (PHP-framework) in windows machine. This is “Hello World” program for Laravel Developer.
Adios Developer 👏, See you in next blog.
Keep Learning, Keep upgrading