php[world] 2015 training - laravel from the ground up

25
Laravel from the Ground Up Joe Ferguson https://joind.in/14750

Upload: joe-ferguson

Post on 22-Jan-2017

482 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: php[world] 2015 Training - Laravel from the Ground Up

Laravel from the Ground Up

Joe Ferguson

https://joind.in/14750

Page 2: php[world] 2015 Training - Laravel from the Ground Up

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

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

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

Brief overview of Laravel

Page 6: php[world] 2015 Training - Laravel from the Ground Up

Love beautiful code? We do too.

The PHP Framework For Web Artisans

Page 7: php[world] 2015 Training - Laravel from the Ground Up

Elegant applications delivered at warp speed

Page 8: php[world] 2015 Training - Laravel from the Ground Up

Expressive, beautiful syntax

Page 9: php[world] 2015 Training - Laravel from the Ground Up

Database ORM

Page 10: php[world] 2015 Training - Laravel from the Ground Up

Routing

Page 11: php[world] 2015 Training - Laravel from the Ground Up

Layouts and views

Page 12: php[world] 2015 Training - Laravel from the Ground Up

Validation

Page 13: php[world] 2015 Training - Laravel from the Ground Up

Application Structure

Page 14: php[world] 2015 Training - Laravel from the Ground Up

Local Development Environment

Page 15: php[world] 2015 Training - Laravel from the Ground Up

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

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

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

Configure HomesteadDefault: Hello World:

Page 19: php[world] 2015 Training - Laravel from the Ground Up

Update /etc/hosts192.168.10.10 hello-world.app

Page 20: php[world] 2015 Training - Laravel from the Ground Up

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

How I use Homestead

Page 22: php[world] 2015 Training - Laravel from the Ground Up

Install Homestead

http://laravel.com/docs/5.1/homestead#per-project-installation

Page 23: php[world] 2015 Training - Laravel from the Ground Up

$ vagrant up

Page 24: php[world] 2015 Training - Laravel from the Ground Up

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

Feedback!

https://joind.in/14750

Joe FergusonTwitter: @JoePFergusonEmail: [email protected]: joepferguson

Contact Info: