Pablo Chiappetti
@p4bloch
APIs SIMPLES CON LARAVEL

o "una excusa para hablar de Laravel"
LARAVELBA.COM.AR

¿Laravel?
Framework PHP open source
Desarrollo y comunidad activos
Sintaxis elegante y simple
Impulsa buenas prácticas de desarrollo
INSTALACION
#1 Laravel Installer
$ composer global require "laravel/installer=~1.1"
$ laravel new MyAplicacion#2 Usando Composer
composer create-project laravel/laravel
Artisan
cli tool
$ php artisan
Available commands:
changes Display the framework change list
clear-compiled Remove the compiled class file
down Put the application into maintenance mode
dump-autoload Regenerate framework autoload files
env Display the current framework environment
help Displays help for a command
list Lists commands
migrate Run the database migrations
optimize Optimize the framework for better performance
routes List all registered routes
serve Serve the application on the PHP development server
tail Tail a log file on a remote server
tinker Interact with your application
up Bring the application out of maintenance mode
workbench Create a new package workbench
asset
asset:publish Publish a package's assets to the public directory
auth
auth:clear-reminders Flush expired reminders.
auth:reminders-controller Create a stub password reminder controller
auth:reminders-table Create a migration for the password reminders table
cache
cache:clear Flush the application cache
cache:table Create a migration for the cache database table
command
command:make Create a new Artisan command
config
config:publish Publish a package's configuration to the application
controller
controller:make Create a new resourceful controller
db
db:seed Seed the database with records
generate
generate:controller Generate a controller
generate:migration Generate a new migration
generate:model Generate a model
generate:pivot Generate a pivot table
generate:publish-templates Copy generator templates for user modification
generate:resource Generate a new resource
generate:scaffold Scaffold a new resource (with boilerplate)
generate:seed Generate a database table seeder
generate:view Generate a view
key
key:generate Set the application key
migrate
migrate:install Create the migration repository
migrate:make Create a new migration file
migrate:publish Publish a package's migrations to the application
migrate:refresh Reset and re-run all migrations
migrate:reset Rollback all database migrations
migrate:rollback Rollback the last database migration
queue
queue:failed List all of the failed queue jobs
queue:failed-table Create a migration for the failed queue jobs database table
queue:flush Flush all of the failed queue jobs
queue:forget Delete a failed queue job
queue:listen Listen to a given queue
queue:restart Restart queue worker daemons after their current job.
queue:retry Retry a failed queue job
queue:subscribe Subscribe a URL to an Iron.io push queue
queue:work Process the next job on a queue
session
session:table Create a migration for the session database table
view
view:publish Publish a package's views to the application
Homestead
Laravel vagrant box
- Ubuntu 14.04
- PHP 5.6
- HHVM
- Nginx
- MySQL
- Postgres
- Node (Grunt, Gulp, Bower)
- Redis
- Memcached
- Beanstalkd

routing

por verbo http


resources


resources



QUERY BUILDER


ELOQUENT

Active Record ORM


ELOQUENT

Actualizando

ELOQUENT

Cacheando Queries

ELOQUENT

Relaciones

blade template engine



layouts

layouts

render views

MIGRATIONS

Version Control para la DB




Dependency injection

LARAVEL IOC CONTAINER ♥



queues (colas)



Mail::queue

eventos


ALTA DEMO

recursos
Laravel.IO
Laracasts.com
Laravel-News.com
Packalyst.com

¡Gracias!
¿Preguntas?

Pablo Chiappetti
@p4bloch
APIs Simples con Laravel
By Pablo Chiappetti
APIs Simples con Laravel
Cómo construir APIs simples con Laravel, un caso de uso para una introducción al framework.
- 1,454