Graham Morby-Raybould

Designer. Developer. Freelancer.

Basic Laravel install


Basic Laravel install

So you want to set up a new Laravel Install? Correct? Right ok so let's begin.....

First and foremost what does our server need to run the framework, as it stands the current Laravel docs have a wonderful little list as follows:

PHP >= 5.6.4 OpenSSL PHP Extension PDO PHP Extension Mbstring PHP Extension Tokenizer PHP Extension XML PHP Extension

The key to making this whole install easier is Composer, it's a little package installer that helps you control and use various packages from other developers. So we need to get that installed, head over to https://getcomposer.org pick your OS and get that all running. Then if we load up terminal and use the command composer you should get a full list of instructions and keywords.

So now we have that installed lets crack on with Laravel! But a quick note here, I must say there are other ways to install a fresh Laravel install, I've just found composer to be the best way. Should you wish to use homestead or some other way check out out the Laravel Docs.

Right so here we go! 

What we need to do is grab a terminal and cd into the folder we want to put our install, for me its a projects folder in root directory, which should look like this:

cd /Projects

Now we are in there and composer is installed all we need to do is write the following:

composer global require "laravel/installer"

What this line is actually doing is just telling our global composer install that we want Laravel to be installed and open to composer on a global level.

Ok so that's step one now step two is to install an actual instance so we can start building! So now we are in our document route and ready to go all we have to do is type the following in our terminal:

composer create-project --prefer-dist laravel/laravel blog

 So this line above is saying composer go create me a laravel project with the latest version called blog. Does that make sense? So if you wanted a project called Happy Dogs life you would go for something like this:

composer create-project --prefer-dist laravel/laravel happydogslife

Easy right? When you hit return Laravel and composer have worked like magic and within a few minutes your project is ready to go and you can crack on and code! Perfect! 


Created: 2017-11-14.


Recent posts


OFF TOPIC - The last Cassini image is something so beautiful

We live in a world where technology rules, a world where we cant seem to cross the road with out...

2017-11-22

Read More

Have you tried turning it off and on again

It would seem its a common thing this day in age. As a developer I have a certain amount of compu...

2017-11-15

Read More

Twitter