You are on page 1of 3

Laravel Framework

Informacintomadade:http://laravel.com/docs
Latestversionatthemomentofwriting:4.1
LaravelPhilosophy
Laravelisawebapplicationframeworkwithexpressive,elegantsyntax.Webelievedevelopment
mustbeanenjoyable,creativeexperiencetobetrulyfulfilling.Laravelattemptstotakethepain
outofdevelopmentbyeasingcommontasksusedinthemajorityofwebprojects,suchas
authentication,routing,sessions,andcaching.

Laravelaimstomakethedevelopmentprocessapleasingoneforthedeveloperwithout
sacrificingapplicationfunctionality.Happydevelopersmakethebestcode.Tothisend,we've
attemptedtocombinetheverybestofwhatwehaveseeninotherwebframeworks,including
frameworksimplementedinotherlanguages,suchasRubyonRails,ASP.NETMVC,and
Sinatra.

Laravelisaccessible,yetpowerful,providingpowerfultoolsneededforlarge,robust
applications.Asuperbinversionofcontrolcontainer,expressivemigrationsystem,andtightly
integratedunittestingsupportgiveyouthetoolsyouneedtobuildanyapplicationwithwhichyou
aretasked.
RESTfulRouting
UsesimpleClosurestorespondtorequeststoyourapplication.Itcouldn'tbeeasiertoget
startedbuildingamazingapplications.
CommandYourData
ShipswiththeamazingEloquentORMandagreatmigrationsystem.WorksgreatonMySQL,
Postgres,SQLServer,andSQLite.
ReadyForTomorrow
Buildhugeenterpriseapplications,orsimpleJSONAPIs.Writepowerfulcontrollers,orslim
RESTfulroutes.Laravelisperfectforjobsofallsizes.
ComposerPowered
Composerisanamazingtooltomanageyourapplication'sthirdpartypackages.Findpackages
onPackagistandusetheminseconds.
DocumentocreadoporFranciscoQuintero
GreatCommunityhttp://forumsarchive.laravel.io/
Whetheryou'reaPHPbeginnerorarchitectureastronaut,you'llfitrightin.Discussideasinthe
IRCchatroom,orpostquestionsintheforum.

CodeExamples

Tomadodehttp://laravel.com/docs/responses
Returning A Redirect With Flash Data
returnRedirect::to('user/login')>with('message','LoginFailed')

Views
Route::get('/',function()
{
returnView::make('greeting',array('name'=>'Taylor'))
})
Creating A JSON Response
returnResponse::json(array('name'=>'Steve','state'=>'CA'))

Basic Controller
classUserControllerextendsBaseController{

/**
*Showtheprofileforthegivenuser.
*/
publicfunctionshowProfile($id)
{
$user=User::find($id)

returnView::make('user.profile',array('user'=>$user))
}

Referencias

LaravelQuickStart
DocumentocreadoporFranciscoQuintero
Laracasts
DocumentocreadoporFranciscoQuintero

You might also like