Skip to content

Category: Coding

Programming and scripting topics.

How to run a Laravel project on your local machine

Suppose you have a Laravel project made by somebody else and you need to install it to run on your Windows machine.

  1. Un-archive the project in a folder inside your XAMPP htdocs folder;
  2. Make sure you have Artisan working correctly;
  3. Do the following steps in your console:

composer install
check .env file
php artisan migrate
php artisan key:generate
php artisan db:seed
php artisan make:auth

For more information on the first two steps you can read the previous two posts in our blog.

Configure Laravel and Artisan to work properly on Windows and XAMPP

After you install Laravel like described on the previous post.

You may need to configure some stuff.

  1. Configure XAMPP home directory. Go to XAMPP controll panel on the Apache module -> click config and open httpd.conf file -> Search for htdocs and change DocumentRoot and Directory to C:/xampp/htdocs/laravel/myprojectname/public (just put the full public path to your Laravel installation);
  2. Set up the Laravel environment. Go to C:\xampp\htdocs\laravel\myprojectname and open .env file and put the DB, User and Pass to the ones that you will use.
  3. Enable the Artisan commands.We need to add a new system variable with the PHP path of our XAMPP installation. Go to Control Panel\All Control Panel Items\System -> Advanced system settings -> Advanced tab -> Environment variables -> System variables -> new -> Call the new variable ‘Artisan’ and add the path ‘C:\xampp\php’ -> OK.

    See the video for details:

  4. In order for your database migrations to work properly on XAMPP and MySQL -> go to app/Providers/AppServiceProvider.php and add:
    use Illuminate\Support\Facades\Schema;

    also put this line into the boot method:

    public function boot()

How to install Laravel on Windows & XAMPP

Four simple steps to install laravel on windows machine:

  1. After installing xampp, just download composer from and install it.
  2. goto path C:/xampp/htdocs and create a folder as laravel, redirect to laravel using cmd prompt as cd c:\xampp\htdocs\laravel.
  3. then simply type this command to create a first project composer create-project laravel/laravel first-project –prefer-dist Replace first-project with your project name (it takes a few minutes to install)
  4. then redirect to localhost/laravel/first-project/public/ and now you can see the Laravel logo along with a quick message saying “You have arrived.” ( always use a public folder to access project )

More info:

Laravel MVC Framework

Laravel is a free, open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model–view–controller (MVC) architectural pattern. Some of the features of Laravel are a modular packaging system with a dedicated dependency manager, different ways for accessing relational databases, utilities that aid in application deployment and maintenance, and its orientation toward syntactic sugar.

As of March 2015, Laravel is regarded as one of the most popular PHP frameworks, together with Symfony2, Nette, CodeIgniter, Yii2 and other frameworks.

The source code of Laravel is hosted on GitHub and licensed under the terms of MIT License.


Taylor Otwell created Laravel as an attempt to provide a more advanced alternative to the CodeIgniter framework, which did not provide certain features such as built-in support for user authentication and authorization. Laravel’s first beta release was made available on June 9, 2011, followed by the Laravel 1 release later in the same month. Laravel 1 included built-in support for authentication, localisation, models, views, sessions, routing and other mechanisms, but lacked support for controllers that prevented it from being a true MVC framework.

Laravel 2 was released in September 2011, bringing various improvements from the author and community. Major new features included the support for controllers, which made Laravel 2 a fully MVC-compliant framework, built-in support for the inversion of control (IoC) principle, and a templating system called Blade. As a downside, support for third-party packages was removed in Laravel 2.

Laravel 3 was released in February 2012 with a set of new features including the command-line interface (CLI) named Artisan, built-in support for more database management systems, database migrations as a form of version control for database layouts, support for handling events, and a packaging system called Bundles. An increase of the Laravel’s userbase and popularity lined up with the release of Laravel 3.

Laravel 4, codenamed Illuminate, was released in May 2013. It was made as a complete rewrite of the Laravel framework, migrating its layout into a set of separate packages distributed through Composer, which serves as an application-level package manager. Such a layout improved the extendibility of Laravel 4, which was paired with its official regular release schedule spanning six months between minor point releases. Other new features in the Laravel 4 release include database seeding for the initial population of databases, support for message queues, built-in support for sending different types of email, and support for delayed deletion of database records called soft deletion.

Laravel 5 was released in February 2015 as a result of internal changes that ended up in renumbering the then-future Laravel 4.3 release. New features in the Laravel 5 release include support for scheduling periodically executed tasks through a package called Scheduler, an abstraction layer called Flysystem that allows remote storage to be used in the same way as local file systems, improved handling of package assets through Elixir, and simplified externally handled authentication through the optional Socialite package. Laravel 5 also introduced a new internal directory tree structure for developed applications.

Laravel 5.1, released in June 2015, is the first release of Laravel to receive long-term support (LTS), with planned availability of bug fixes for three years and security patches for three years. LTS releases of Laravel are planned to be released every two years.

Laravel 5.3, released in August 23, 2016,The new features in 5.3 are focused on improving developer speed by adding additional out of the box improvements for common tasks.

From Wikipedia, the free encyclopedia.