#Intro to MVC using Laravel# Created by Mark Johnson
##Download using Git
- Create a new sub-directory on your PHP5.4/MySQL server. If you dont have a web host and you have a unix machine (including Mac), local development works great using Laravel's built-in
php artisan serve
function. Learn more at http://laravel.com/docs/artisan. - In your mac/unix terminal enter:
git clone https://github.com/marklj/to-do-laravel.git
##Download manually
- Navigate yoyr browser to https://github.com/marklj/to-do-laravel
- Click the zip link
- Save to a folder on your local machine or PHP/MySQL server
##Requirements
- PHP 5.4
- Composer (http://getcomposer.org)
- MySQL Server
##Installation
- Run
composer update
in your project root (orcomposer.phar update
if Composer is not installed globally). - Create a new MySQL database
- Open
app/config/database.php
and edit the MySQL host and database settings as needed. - Run database migrations in your termanal using
php artisan migrate
- Start your server using the termanal command
php artisan serve
##Use this to LEARN Learn how to code in an MVC environment by editing and extending this little app. Try one of the following to get started:
- Edit some view files to make them look less lame.
- Add validation rules to the
insert
model function to make your app more secure. Learn more about validation here. - Create new model/controller/views to add the functionality to edit or delete to-do items.
- Learn more specifically about Laravel at laravel.com