Intro to Laravel 4 : By Chris Moore
-
Upload
kareerme -
Category
Technology
-
view
4.716 -
download
6
description
Transcript of Intro to Laravel 4 : By Chris Moore
![Page 1: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/1.jpg)
/** * Intro to Laravel 4 * * @author : Christopher A. Moore * @github : chrisamoore * * @IRC : camdesigns * @twitter : @camdesigns * @linkedin : linkedin.com/in/camdesigns * * @link : http://kareer.me * @link : http://camdesigns.net */
Tuesday, August 20, 13
![Page 2: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/2.jpg)
About Me: - Co-Founder Kareer.me- Fulltime Job at V2- Born and Raised in NY - US Navy Veteran- Self Taught PHP Developer since ’06
Tuesday, August 20, 13
![Page 3: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/3.jpg)
Intro to Laravel 4PreReqs
Composer Install Config MVC Generator Migration Seeding Routes Blade Form Helper Eloquent ORM - Q & A
Tuesday, August 20, 13
![Page 4: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/4.jpg)
History
Tuesday, August 20, 13
![Page 5: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/5.jpg)
L4 is the 4th Major Version of Laravel L4 released: May 2013Built By Taylor Otwell (A freakin .net Developer ?)
Started with the vision of Codeigniter ( Taylor Otwell Loved it ) in 2011Quickly turned into a CI COre HackathonWanted nice ORM and Ruby-esque FeaturesWanted Better DocsStarted classicly with the “PHP Way” Reinvented the wheel
Goals: Get Stuff doneExpressive Readable CodeTools I Need ( Auth, API )Awesome Documentation
Uses lots of Symfony ComponentsUses Composer
Tuesday, August 20, 13
![Page 6: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/6.jpg)
Prerequisites
Tuesday, August 20, 13
![Page 7: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/7.jpg)
ZSH
https://github.com/robbyrussell/oh-my-zsh
~/.zshrc
alias art='php artisan'
Tuesday, August 20, 13
![Page 8: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/8.jpg)
curl -sS https://getcomposer.org/installer | php
Tuesday, August 20, 13
![Page 9: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/9.jpg)
Install & Configuration
Tuesday, August 20, 13
![Page 10: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/10.jpg)
composer create-project laravel/laravel
Tuesday, August 20, 13
![Page 11: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/11.jpg)
/etc/hosts
Tuesday, August 20, 13
![Page 12: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/12.jpg)
/etc/apache2/httpd.conf/etc/apache2/extra/vhosts.conf
Tuesday, August 20, 13
![Page 13: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/13.jpg)
cd ../laravel/app/chmod -R 777 storage
Tuesday, August 20, 13
![Page 14: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/14.jpg)
../laravel/app/config/app.php
Tuesday, August 20, 13
![Page 15: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/15.jpg)
../laravel/app/config/database.php
Tuesday, August 20, 13
![Page 16: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/16.jpg)
MVC
Tuesday, August 20, 13
![Page 17: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/17.jpg)
../laravel/app/config/
Tuesday, August 20, 13
![Page 18: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/18.jpg)
../laravel/app/controllers/
Tuesday, August 20, 13
![Page 19: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/19.jpg)
../laravel/app/models/
Tuesday, August 20, 13
![Page 20: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/20.jpg)
../laravel/app/views/
Tuesday, August 20, 13
![Page 21: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/21.jpg)
../laravel/app/database/
Tuesday, August 20, 13
![Page 22: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/22.jpg)
../laravel/app/tests/
Tuesday, August 20, 13
![Page 23: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/23.jpg)
../laravel/vendor/framework/src/illuminate/
Tuesday, August 20, 13
![Page 24: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/24.jpg)
Routes
Tuesday, August 20, 13
![Page 25: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/25.jpg)
../laravel/app/routes.php
Tuesday, August 20, 13
![Page 27: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/27.jpg)
Your Mom App Stores your mom jokes!
Tuesday, August 20, 13
![Page 28: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/28.jpg)
Generators
Tuesday, August 20, 13
![Page 29: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/29.jpg)
../laravel/composer.json
Tuesday, August 20, 13
![Page 30: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/30.jpg)
composer update
Tuesday, August 20, 13
![Page 31: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/31.jpg)
../laravel/app/config/app.php
Tuesday, August 20, 13
![Page 32: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/32.jpg)
art generate:resource yourmom --fields=”title:string category:string”
Tuesday, August 20, 13
![Page 33: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/33.jpg)
What Just Happened
Tuesday, August 20, 13
![Page 34: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/34.jpg)
Migrations
../laravel/app/routes.php
Tuesday, August 20, 13
![Page 35: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/35.jpg)
Migrations
Tuesday, August 20, 13
![Page 36: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/36.jpg)
Migrations
Tuesday, August 20, 13
![Page 37: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/37.jpg)
..laravel/app/database/migrations/.._create_yourmoms_table.php
Tuesday, August 20, 13
![Page 38: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/38.jpg)
art migrate
Tuesday, August 20, 13
![Page 39: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/39.jpg)
Seeder
Tuesday, August 20, 13
![Page 40: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/40.jpg)
..laravel/app/database/seeds/YourmomsTableSeeder.php
Tuesday, August 20, 13
![Page 41: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/41.jpg)
art db:seed
Tuesday, August 20, 13
![Page 42: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/42.jpg)
Controllers
Tuesday, August 20, 13
![Page 43: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/43.jpg)
../laravel/app/controllers/YourmomsController.php
Tuesday, August 20, 13
![Page 44: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/44.jpg)
Blade / View
Tuesday, August 20, 13
![Page 46: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/46.jpg)
../laravel/app/views/
../views/layout.blade.php ../parts/header.blade.php
Tuesday, August 20, 13
![Page 47: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/47.jpg)
../laravel/app/views/yourmoms/index.blade.php
Tuesday, August 20, 13
![Page 48: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/48.jpg)
http://laravel.demo/yourmoms
Tuesday, August 20, 13
![Page 49: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/49.jpg)
Form Helper
Tuesday, August 20, 13
![Page 50: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/50.jpg)
../views/yourmoms/create.blade.php
Tuesday, August 20, 13
![Page 51: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/51.jpg)
http://laravel.demo/yourmoms/create
Tuesday, August 20, 13
![Page 52: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/52.jpg)
ORM
Tuesday, August 20, 13
![Page 53: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/53.jpg)
../laravel/app/routes.php
Tuesday, August 20, 13
![Page 54: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/54.jpg)
../laravel/app/routes.php
Tuesday, August 20, 13
![Page 55: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/55.jpg)
../laravel/app/routes.php
Tuesday, August 20, 13
![Page 56: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/56.jpg)
../laravel/app/routes.php
Tuesday, August 20, 13
![Page 57: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/57.jpg)
../laravel/app/routes.php
Tuesday, August 20, 13
![Page 58: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/58.jpg)
What We CoveredPreReqs
Composer Install Config MVC Generator Migration Seeding Routes Blade Form Helper Eloquent ORM - Q & A
Tuesday, August 20, 13
![Page 59: Intro to Laravel 4 : By Chris Moore](https://reader036.fdocuments.net/reader036/viewer/2022062307/554949f3b4c9050a4d8b58f5/html5/thumbnails/59.jpg)
Recap:
[email protected] / Twitter : @camdesigns
GChat : [email protected]
Coupon kodez for Books:https://leanpub.com/laravel
Raffled - ( Limit 1 Copies )
https://leanpub.com/codebright Raffled - ( Limit 40 Copies )
https://leanpub.com/laravel-testing-decoded Raffled - ( Limit 3 Copies )
Tuesday, August 20, 13