/**
* Intro to Laravel 4
*
* @author : Christopher A. Moore
* @github : chrisamoore
*
* @IRC : camdesigns
* @twitter : @ca...
About Me:
- Co-Founder Kareer.me
- Fulltime Job at V2
- Born and Raised in NY
- US Navy Veteran
- Self Taught PHP Develope...
Intro to Laravel 4
PreReqs
Composer Install
Config
MVC
Generator
Migration
Seeding
Routes
Blade
Form Helper
Eloquent ORM
- ...
History
Tuesday, August 20, 13
L4 is the 4th Major Version of Laravel
L4 released: May 2013
Built By Taylor Otwell (A freakin .net Developer ?)
Started w...
Prerequisites
Tuesday, August 20, 13
ZSH
https://github.com/robbyrussell/oh-my-zsh
~/.zshrc
alias art='php artisan'
Tuesday, August 20, 13
curl -sS https://getcomposer.org/installer | php
Tuesday, August 20, 13
Install & Configuration
Tuesday, August 20, 13
composer create-project laravel/laravel
Tuesday, August 20, 13
/etc/hosts
Tuesday, August 20, 13
/etc/apache2/httpd.conf
/etc/apache2/extra/vhosts.conf
Tuesday, August 20, 13
cd ../laravel/app/
chmod -R 777 storage
Tuesday, August 20, 13
../laravel/app/config/app.php
Tuesday, August 20, 13
../laravel/app/config/database.php
Tuesday, August 20, 13
MVC
Tuesday, August 20, 13
../laravel/app/config/
Tuesday, August 20, 13
../laravel/app/controllers/
Tuesday, August 20, 13
../laravel/app/models/
Tuesday, August 20, 13
../laravel/app/views/
Tuesday, August 20, 13
../laravel/app/database/
Tuesday, August 20, 13
../laravel/app/tests/
Tuesday, August 20, 13
../laravel/vendor/framework/src/illuminate/
Tuesday, August 20, 13
Routes
Tuesday, August 20, 13
../laravel/app/routes.php
Tuesday, August 20, 13
http://laravel.demo
Tuesday, August 20, 13
Your Mom App
Stores your mom jokes!
Tuesday, August 20, 13
Generators
Tuesday, August 20, 13
../laravel/composer.json
Tuesday, August 20, 13
composer update
Tuesday, August 20, 13
../laravel/app/config/app.php
Tuesday, August 20, 13
art generate:resource yourmom --fields=”title:string
category:string”
Tuesday, August 20, 13
What Just Happened
Tuesday, August 20, 13
Migrations
../laravel/app/routes.php
Tuesday, August 20, 13
Migrations
Tuesday, August 20, 13
Migrations
Tuesday, August 20, 13
..laravel/app/database/
migrations/.._create_yourmoms_table.php
Tuesday, August 20, 13
art migrate
Tuesday, August 20, 13
Seeder
Tuesday, August 20, 13
..laravel/app/database/seeds/YourmomsTableSeeder.php
Tuesday, August 20, 13
art db:seed
Tuesday, August 20, 13
Controllers
Tuesday, August 20, 13
../laravel/app/controllers/YourmomsController.php
Tuesday, August 20, 13
Blade / View
Tuesday, August 20, 13
../laravel/public/assets
git clone git@github.com:twbs/bootstrap.git
Tuesday, August 20, 13
../laravel/app/views/
../views/layout.blade.php ../parts/header.blade.php
Tuesday, August 20, 13
../laravel/app/views/yourmoms/index.blade.php
Tuesday, August 20, 13
http://laravel.demo/yourmoms
Tuesday, August 20, 13
Form Helper
Tuesday, August 20, 13
../views/yourmoms/create.blade.php
Tuesday, August 20, 13
http://laravel.demo/yourmoms/create
Tuesday, August 20, 13
ORM
Tuesday, August 20, 13
../laravel/app/routes.php
Tuesday, August 20, 13
../laravel/app/routes.php
Tuesday, August 20, 13
../laravel/app/routes.php
Tuesday, August 20, 13
../laravel/app/routes.php
Tuesday, August 20, 13
../laravel/app/routes.php
Tuesday, August 20, 13
What We Covered
PreReqs
Composer Install
Config
MVC
Generator
Migration
Seeding
Routes
Blade
Form Helper
Eloquent ORM
- Q &...
Recap:
Chris@kareer.me
IRC / Twitter : @camdesigns
GChat : chris.a.moore@gmail.com
Coupon kodez for Books:
https://leanpub...
Upcoming SlideShare
Loading in …5
×

Intro to Laravel 4 : By Chris Moore

7,105 views

Published on

Intro to Laravel PHP Framework touching on Composer, Eloquent ORM, Blade, MVC, Migration, Seeding, Artisan, Forms, Generators

Ven

Presented by:
Christopher A. Moore
chris@kareer.me
Koder at http://kareer.me

Published in: Technology

Intro to Laravel 4 : By Chris Moore

  1. 1. /** * 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
  2. 2. 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
  3. 3. Intro to Laravel 4 PreReqs Composer Install Config MVC Generator Migration Seeding Routes Blade Form Helper Eloquent ORM - Q & A Tuesday, August 20, 13
  4. 4. History Tuesday, August 20, 13
  5. 5. L4 is the 4th Major Version of Laravel L4 released: May 2013 Built By Taylor Otwell (A freakin .net Developer ?) Started with the vision of Codeigniter ( Taylor Otwell Loved it ) in 2011 Quickly turned into a CI COre Hackathon Wanted nice ORM and Ruby-esque Features Wanted Better Docs Started classicly with the “PHP Way” Reinvented the wheel Goals: Get Stuff done Expressive Readable Code Tools I Need ( Auth, API ) Awesome Documentation Uses lots of Symfony Components Uses Composer Tuesday, August 20, 13
  6. 6. Prerequisites Tuesday, August 20, 13
  7. 7. ZSH https://github.com/robbyrussell/oh-my-zsh ~/.zshrc alias art='php artisan' Tuesday, August 20, 13
  8. 8. curl -sS https://getcomposer.org/installer | php Tuesday, August 20, 13
  9. 9. Install & Configuration Tuesday, August 20, 13
  10. 10. composer create-project laravel/laravel Tuesday, August 20, 13
  11. 11. /etc/hosts Tuesday, August 20, 13
  12. 12. /etc/apache2/httpd.conf /etc/apache2/extra/vhosts.conf Tuesday, August 20, 13
  13. 13. cd ../laravel/app/ chmod -R 777 storage Tuesday, August 20, 13
  14. 14. ../laravel/app/config/app.php Tuesday, August 20, 13
  15. 15. ../laravel/app/config/database.php Tuesday, August 20, 13
  16. 16. MVC Tuesday, August 20, 13
  17. 17. ../laravel/app/config/ Tuesday, August 20, 13
  18. 18. ../laravel/app/controllers/ Tuesday, August 20, 13
  19. 19. ../laravel/app/models/ Tuesday, August 20, 13
  20. 20. ../laravel/app/views/ Tuesday, August 20, 13
  21. 21. ../laravel/app/database/ Tuesday, August 20, 13
  22. 22. ../laravel/app/tests/ Tuesday, August 20, 13
  23. 23. ../laravel/vendor/framework/src/illuminate/ Tuesday, August 20, 13
  24. 24. Routes Tuesday, August 20, 13
  25. 25. ../laravel/app/routes.php Tuesday, August 20, 13
  26. 26. http://laravel.demo Tuesday, August 20, 13
  27. 27. Your Mom App Stores your mom jokes! Tuesday, August 20, 13
  28. 28. Generators Tuesday, August 20, 13
  29. 29. ../laravel/composer.json Tuesday, August 20, 13
  30. 30. composer update Tuesday, August 20, 13
  31. 31. ../laravel/app/config/app.php Tuesday, August 20, 13
  32. 32. art generate:resource yourmom --fields=”title:string category:string” Tuesday, August 20, 13
  33. 33. What Just Happened Tuesday, August 20, 13
  34. 34. Migrations ../laravel/app/routes.php Tuesday, August 20, 13
  35. 35. Migrations Tuesday, August 20, 13
  36. 36. Migrations Tuesday, August 20, 13
  37. 37. ..laravel/app/database/ migrations/.._create_yourmoms_table.php Tuesday, August 20, 13
  38. 38. art migrate Tuesday, August 20, 13
  39. 39. Seeder Tuesday, August 20, 13
  40. 40. ..laravel/app/database/seeds/YourmomsTableSeeder.php Tuesday, August 20, 13
  41. 41. art db:seed Tuesday, August 20, 13
  42. 42. Controllers Tuesday, August 20, 13
  43. 43. ../laravel/app/controllers/YourmomsController.php Tuesday, August 20, 13
  44. 44. Blade / View Tuesday, August 20, 13
  45. 45. ../laravel/public/assets git clone git@github.com:twbs/bootstrap.git Tuesday, August 20, 13
  46. 46. ../laravel/app/views/ ../views/layout.blade.php ../parts/header.blade.php Tuesday, August 20, 13
  47. 47. ../laravel/app/views/yourmoms/index.blade.php Tuesday, August 20, 13
  48. 48. http://laravel.demo/yourmoms Tuesday, August 20, 13
  49. 49. Form Helper Tuesday, August 20, 13
  50. 50. ../views/yourmoms/create.blade.php Tuesday, August 20, 13
  51. 51. http://laravel.demo/yourmoms/create Tuesday, August 20, 13
  52. 52. ORM Tuesday, August 20, 13
  53. 53. ../laravel/app/routes.php Tuesday, August 20, 13
  54. 54. ../laravel/app/routes.php Tuesday, August 20, 13
  55. 55. ../laravel/app/routes.php Tuesday, August 20, 13
  56. 56. ../laravel/app/routes.php Tuesday, August 20, 13
  57. 57. ../laravel/app/routes.php Tuesday, August 20, 13
  58. 58. What We Covered PreReqs Composer Install Config MVC Generator Migration Seeding Routes Blade Form Helper Eloquent ORM - Q & A Tuesday, August 20, 13
  59. 59. Recap: Chris@kareer.me IRC / Twitter : @camdesigns GChat : chris.a.moore@gmail.com 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

×