php[world] 2015 Training - Laravel from the Ground Up
-
Upload
joe-ferguson -
Category
Technology
-
view
481 -
download
0
Transcript of php[world] 2015 Training - Laravel from the Ground Up
![Page 2: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/2.jpg)
Who Am I?
Joe Ferguson
PHP Developer
Twitter: @JoePFerguson
Organizer of @MemphisPHP
@NomadPHP Lightning Talks
Passionate about Community
![Page 3: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/3.jpg)
Before we beginHave Virtualbox (virtualbox.org) Installed
Have VirtualBox Extension Pack Installed
Have Vagrant (vagrantup.com) Installed
run: vagrant box add laravel/homestead
![Page 4: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/4.jpg)
The Plan
Brief overview of Laravel
Local Development Environment
Build an Application
Testing Your Application
Deploying Your Application
![Page 5: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/5.jpg)
Brief overview of Laravel
![Page 6: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/6.jpg)
Love beautiful code? We do too.
The PHP Framework For Web Artisans
![Page 7: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/7.jpg)
Elegant applications delivered at warp speed
![Page 8: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/8.jpg)
Expressive, beautiful syntax
![Page 9: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/9.jpg)
Database ORM
![Page 10: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/10.jpg)
Routing
![Page 11: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/11.jpg)
Layouts and views
![Page 12: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/12.jpg)
Validation
![Page 13: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/13.jpg)
Application Structure
![Page 14: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/14.jpg)
Local Development Environment
![Page 15: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/15.jpg)
Laravel Homestead“Laravel Homestead is an official, pre-packaged Vagrant "box" that provides you a wonderful development environment without requiring you to install PHP, HHVM, a web server, and any other server software on your local machine.”
![Page 16: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/16.jpg)
What’s in the box:
• Ubuntu 14.04• PHP 5.6• HHVM• Nginx• MySQL• Postgres• Redis
• NodeJS• Bower• Grunt• Gulp• Beanstalkd• Memcached• Laravel Envoy
Fabric + HipChat Extension + more!
![Page 17: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/17.jpg)
Getting Homestead
Install the box:vagrant box add laravel/homestead
Clone the Repository:git clone https://github.com/laravel/homestead.git Homestead
![Page 18: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/18.jpg)
Configure HomesteadDefault: Hello World:
![Page 19: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/19.jpg)
Update /etc/hosts192.168.10.10 hello-world.app
![Page 20: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/20.jpg)
Ready to vagrant up
Our code will be shared from our host machine
And mapped to the vagrant machine
~/PhpstormProjects/hello-world
/home/vagrant/hello-world
![Page 21: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/21.jpg)
How I use Homestead
![Page 22: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/22.jpg)
Install Homestead
http://laravel.com/docs/5.1/homestead#per-project-installation
![Page 23: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/23.jpg)
$ vagrant up
![Page 24: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/24.jpg)
Application Features
User Login
User Management
on user reg queue admin email
contact us saves to DB and emails admin
layout with menu extending
![Page 25: php[world] 2015 Training - Laravel from the Ground Up](https://reader031.fdocuments.us/reader031/viewer/2022030220/5884db1a1a28ab4b778b4faf/html5/thumbnails/25.jpg)
Feedback!
https://joind.in/14750
Joe FergusonTwitter: @JoePFergusonEmail: [email protected]: joepferguson
Contact Info: