In this series we’ll be building a fully functioning blog using the Laravel 5.2 framework. We’ll iteratively build up our own content management system from the ground up and I’ll focus on demonstrating the best practices and by the end of this you’ll have a solid base for whatever projects you have in the pipeline.

Creating our Project

Laravel 5.1 Installation

Once you’ve installed and configured your environment it’s time to begin. Create the new project by creating a new directory on your machine and then typing the following in the terminal:

composer create-project laravel/laravel blog "5.1.*"

Testing it all works:

Ensure that you set the correct permissions on the storage and bootstrap/cache directories within your new project. You can do this on mac easily by typing the following:

chmod -R 777 bootstrap/cache
chmod -R 777 storage

Running our Laravel project Locally:

Now that all permission have been set up you can now serve up your application by typing the following in the terminal:

php artisan serve --port=8080

Navigate to http://localhost:8080 in your browser and, should everything have been set up correctly, you should see the laravel 5 default page.

Next Lesson

In the next lesson of this course, I will be demonstrating how we can create some basic tables using migrations.

Link: Lesson 2 - Working With Tables