Laravel 5 Basic CRUD Application – Part 1 (Installation)

Laravel is the very powerful framework for php web application.

Installation

Before starting new project you need Composer to install required dependencies. This helps you to download laravel dependencies.
To install Composer you need php5-curl. To install curl simply run the following command.

$ sudo apt-get install php5 git php5-curl

After successful installation of curl you can simply run the following command to download the composer.

$ curl -sS https://getcomposer.org/installer | php

Now you need to set path environment variable for composer. So that you can simply access composer by simply typing composer

Run the following command to set environment variable for composer

$ export PATH="$PATH:~/.composer/vendor/bin"

Now you can download laravel installer using composer. The below command will download the laravel installer.

composer global require "laravel/installer=~1.1"

That’s all..! All are set.

Now create a basic project by simply typing the following command

laravel new mycrud

now the new project mycrud was created in the directory. Be sure your project directory is in ‘/var/www/html’

Laravel 5 Basic CRUD Application – Part 2 (Setup)

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s