# data[].attributes.body
http://laravel.com/

# data[].attributes.body
free,

open-source PHP web application framework,

intended for the development of web applications,

model–view–controller (MVC) architectural pattern.

expressive syntax,

modular packaging system

various utilities that aid in application deployment and maintenance.
MIT License

# data[].attributes.body
https://www.flynsarmy.com/2015/02/creating-a-basic-todo-application-in-laravel-5-part-1/

https://www.flynsarmy.com/2015/02/creating-a-basic-todo-application-in-laravel-5-part-2/

https://www.flynsarmy.com/2015/02/creating-a-basic-todo-application-in-laravel-5-part-3/

https://www.flynsarmy.com/2015/02/creating-a-basic-todo-application-in-laravel-5-part-4/

# data[].attributes.body
https://www.packtpub.com/books/content/laravel-4-creating-simple-crud-application-hours

https://selftaughtcoders.com/from-idea-to-launch/lesson-17/laravel-5-mvc-application-in-10-minutes/

http://www.sitepoint.com/crud-create-read-update-delete-laravel-app/

# data[].attributes.body
http://blog.luutaa.com/cloud/setting-up-laravel-5-on-digital-ocean-ubuntu-on-apache/

http://tutsnare.com/how-to-install-laravel-on-ubuntu-lamp/

# data[].attributes.headline
Install Laravel 4.2 on Ubuntu Server 14.04 LTS

# data[].attributes.subject
Install Laravel 4.2 on Ubuntu Server 14.04 LTS

# data[].attributes.body
<p><a href="http://ulyssesonline.com/2014/07/24/install-laravel-4-2-on-ubuntu-server-14-04-lts/">http://ulyssesonline.com/2014/07/24/install-laravel-4-2-on-ubuntu-server-14-04-lts/</a></p><p> 
# Install Tasksel
apt-get -y install tasksel <br></p><p># Install LAMP
tasksel install lamp-server <br></p><p># Install PHPMyAdmin
apt-get install phpmyadmin

# Set group to www-data
chgrp www-data /var/www <br></p><p># Make it writable for the group
chmod 775 /var/www <br></p><p># Set GID to www-data for all sub-folders
sudo chmod g+s /var/www <br></p><p># Add your username to www-data group
sudo usermod -a -G www-data username <br></p><p># Finally change ownership to username
chown username /var/www/ <br></p><p># Your account shouldn't have any more permission issues

</p><p>#the prerequisites taken care of before installing Laravel</p>#Install Curl

<table><tbody><tr><td><pre>apt-get install php5-curl</pre></td></tr></tbody></table>
<p>#Install Mycrypt</p>apt-get install php5-mcrypt

<p>#Activate Mcrypt - Enable extension
php5enmod mcrypt <br></p><p></p><p># Restart Apache
service apache2 reload

</p><p>##Enable Mod-Rewrite</p>a2enmod rewrite <br><p></p><p># restart apache
sudo service apache restart

</p><p>#Install Laravel via Composer</p>#Install Composer First

<table><tbody><tr><td><pre>cd ~
curl -sS <a href="https://getcomposer.org/installer">https://getcomposer.org/installer</a> | sudo php</pre></td></tr></tbody></table>
#Installer Composer Globally
mv composer.phar /usr/local/bin/composer

<p>##Install Laravel</p>
# your-project is your destination folder
cd /var/www/
composer create-project laravel/laravel your-project --prefer-dist

<p>##Set up your Apache virtual host</p>

<table><tbody><tr><td><pre># Copy default Apache conf
sudo cp /etc/apache2/sites-available/000-default /etc/apache2/sites-available/laravel.conf


# Edit laravel.conf 
pico /etc/apache2/sites-available/laravel.conf


# Edit laravel.conf add the following and save.
DocumentRoot /var/www/laravel/public
<Directory /var/www/laravel/public>
 Options Indexes FollowSymLinks MultiViews
 AllowOverride All
 Order allow,deny
 allow from all
</Directory>


# Reload Apache
service apache2 reload


# Disable default Apache conf
a2dissite 000-default.conf


# Enable laravel.conf
a2ensite laravel.conf


# Reload Apache
service apache reload</pre></td></tr></tbody></table>
#by setting up your /var/www  permissions, you don’t need to change permissions to “app/storage” (already have the correct permission to /var/www). 
<p>Finally, access Laravel from the IP address of your Ubuntu Server. <br></p><p></p>

# data[].attributes.body
https://github.com/JeffreyWay/Laravel-4-Generators

php artisan generate:migration - This expands the Laravel's built-in migration generator by allowing you to specify fields on the command line and automatically creating the schema for you.

php artisan generate:model - This creates a boilerplate for an Eloquent model.

php artisan generate:controller - This creates a boilerplate for a Controller.

php artisan generate:seed - This generates a seed file for a table for you. All you need to do is add the data to seed.

php artisan generate:view - This will create a boilerplate view for you.

php artisan generate:resource - This is a powerful generator. It calls all the other generators to create everything needed for a resource.

php artisan generate:scaffold - Like generate:resource but creates all of the boilerplate for listing, editing, creating, and viewing a resource.

php artisan generate:form - This creates a form for you based on a model.

php artisan generate:test - This creates a boilerplate unit test file for you.

php artisan generate:pivot - This generates the schema for a pivot table between two related tables.

> php artisan generate:model Post app/models/Post.php
<?php class Post extends \Eloquent { } > php artisan generate:view admin.reports.index
This command will create an empty view, /app/views/admin/reports/index.blade.php.

> php artisan generate:resource post --fields="title:string, body:text"
app/models/Post.php
app/controllers/PostsController.php
app/database/migrations/timestamp-create_posts_table.php (including the schema)
app/database/seeds/PostsTableSeeder.php
Scaffolding
The scaffolding generator is similar to generate:resource, except it will add some beginning boilerplate to these files, as a convenience.
> php artisan generate:scaffold post

<?php

class PostsController extends \BaseController {

    /**
     * Display a listing of posts
     *
     * @return Response
     */
    public function index()
    {
        $posts = Post::all();

        return View::make('posts.index', compact('posts'));
    }

    /**
     * Show the form for creating a new post
     *
     * @return Response
     */
    public function create()
    {
        return View::make('posts.create');
    }

    /**
     * Store a newly created post in storage.
     *
     * @return Response
     */
    public function store()
    {
        $validator = Validator::make($data = Input::all(), Post::$rules);

        if ($validator->fails())
        {
            return Redirect::back()->withErrors($validator)->withInput();
        }

        Post::create($data);

        return Redirect::route('posts.index');
    }

    /**
     * Display the specified post.
     *
     * @param  int  $id
     * @return Response
     */
    public function show($id)
    {
        $post = Post::findOrFail($id);

        return View::make('posts.show', compact('post'));
    }

    /**
     * Show the form for editing the specified post.
     *
     * @param  int  $id
     * @return Response
     */
    public function edit($id)
    {
        $post = Post::find($id);

        return View::make('posts.edit', compact('post'));
    }

    /**
     * Update the specified resource in storage.
     *
     * @param  int  $id
     * @return Response
     */
    public function update($id)
    {
        $post = Post::findOrFail($id);

        $validator = Validator::make($data = Input::all(), Post::$rules);

        if ($validator->fails())
        {
            return Redirect::back()->withErrors($validator)->withInput();
        }

        $post->update($data);

        return Redirect::route('posts.index');
    }

    /**
     * Remove the specified resource from storage.
     *
     * @param  int  $id
     * @return Response
     */
    public function destroy($id)
    {
        Post::destroy($id);

        return Redirect::route('posts.index');
    }

}

# data[].attributes.body
http://www.tutorials.kode-blog.com/laravel-blade-template

http://daylerees.com/codebright-blade/

https://scotch.io/tutorials/simple-laravel-layouts-using-blade