So you want to set up a new Laravel Install? Correct? Right ok so lets 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, its 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 mist say their are other ways to install a fresh Laravel install, I have 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 but our install, for me its a projects folder in root directory, which should look like this:
Now we are in there and composer is installed or 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 install 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? What happens when you hit return is the magic of Laravel and composer and within a few minutes your project is ready to go and you can crack on and code! Perfect!
So you want to set up a new Laravel Install? Correct? Right ok so lets begin..... First...
It's a hard thing this day in age to decide what is best to do in terms of technology and how...