Laravel Framework - Resumen

download Laravel Framework - Resumen

of 3

Transcript of Laravel Framework - Resumen

  • 8/12/2019 Laravel Framework - Resumen

    1/3

    Laravel FrameworkInformacin tomada de: http://laravel.com/docs

    Latest version at the moment of writing: 4.1

    Laravel PhilosophyLaravel is a web application framework with expressive, elegant syntax. We believe development

    must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain

    out of development by easing common tasks used in the majority of web projects, such as

    authentication, routing, sessions, and caching.

    Laravel aims to make the development process a pleasing one for the developer without

    sacrificing application functionality. Happy developers make the best code. To this end, we've

    attempted to combine the very best of what we have seen in other web frameworks, including

    frameworks implemented in other languages, such as Ruby on Rails, ASP.NET MVC, andSinatra.

    Laravel is accessible, yet powerful, providing powerful tools needed for large, robust

    applications. A superb inversion of control container, expressive migration system, and tightly

    integrated unit testing support give you the tools you need to build any application with which you

    are tasked.

    RESTful Routing

    Use simple Closures to respond to requests to your application. It couldn't be easier to getstarted building amazing applications.

    Command Your Data

    Ships with the amazing Eloquent ORM and a great migration system. Works great on MySQL,

    Postgres, SQL Server, and SQLite.

    Ready For Tomorrow

    Build huge enterprise applications, or simple JSON APIs. Write powerful controllers, or slimRESTful routes. Laravel is perfect for jobs of all sizes.

    Composer Powered

    Composer is an amazing tool to manage your application's third-party packages. Find packages

    on Packagist and use them in seconds.

    Documento creado por Francisco Quintero

    http://www.google.com/url?q=http%3A%2F%2Flaravel.com%2Fdocs&sa=D&sntz=1&usg=AFQjCNHt192ovmJ1OKrMj7VXkVVQUuadNAhttp://www.google.com/url?q=http%3A%2F%2Fbit.ly%2Fcescquintero&sa=D&sntz=1&usg=AFQjCNETBVJQ0jT36V31pserP2jsCrYYmghttp://www.google.com/url?q=http%3A%2F%2Fbit.ly%2Fcescquintero&sa=D&sntz=1&usg=AFQjCNETBVJQ0jT36V31pserP2jsCrYYmghttp://www.google.com/url?q=http%3A%2F%2Flaravel.com%2Fdocs&sa=D&sntz=1&usg=AFQjCNHt192ovmJ1OKrMj7VXkVVQUuadNA
  • 8/12/2019 Laravel Framework - Resumen

    2/3

    Great Community http://forumsarchive.laravel.io/ Whether you're a PHP beginner or architecture astronaut, you'll fit right in. Discuss ideas in the

    IRC chat room, or post questions in the forum.

    Code Examples

    Tomado de http://laravel.com/docs/responses

    Returning A Redirect With Flash Data

    return Redirect::to('user/login')->with('message', 'Login Failed')

    Views

    Route::get('/', function(){

    return View::make('greeting', array('name' => 'Taylor'))

    })

    Creating A JSON Response

    return Response::json(array('name' => 'Steve', 'state' => 'CA'))

    Basic Controller

    class UserController extends BaseController {

    /**

    * Show the profile for the given user.

    */

    public function showProfile($id)

    {

    $user = User::find($id)

    return View::make('user.profile', array('user' => $user))

    }

    }

    Referencias

    Laravel Quick Start

    Documento creado por Francisco Quintero

    http://www.google.com/url?q=http%3A%2F%2Fbit.ly%2Fcescquintero&sa=D&sntz=1&usg=AFQjCNETBVJQ0jT36V31pserP2jsCrYYmghttp://www.google.com/url?q=http%3A%2F%2Fbit.ly%2Fcescquintero&sa=D&sntz=1&usg=AFQjCNETBVJQ0jT36V31pserP2jsCrYYmghttp://www.google.com/url?q=http%3A%2F%2Flaravel.com%2Fdocs%2Fquick&sa=D&sntz=1&usg=AFQjCNF5fhJnKGu-PT7-N2Tu6937xDwPGAhttp://www.google.com/url?q=http%3A%2F%2Flaravel.com%2Fdocs%2Fresponses%C3%A7&sa=D&sntz=1&usg=AFQjCNEPlLj-JpKk9K6xY2AN7bLE8ZUDbQhttp://www.google.com/url?q=http%3A%2F%2Fforumsarchive.laravel.io%2F&sa=D&sntz=1&usg=AFQjCNEI4N7FNKl9_a_iGvzTW8_Bg4gpiQ
  • 8/12/2019 Laravel Framework - Resumen

    3/3

    Laracasts

    Documento creado por Francisco Quintero

    http://www.google.com/url?q=http%3A%2F%2Fbit.ly%2Fcescquintero&sa=D&sntz=1&usg=AFQjCNETBVJQ0jT36V31pserP2jsCrYYmghttp://www.google.com/url?q=http%3A%2F%2Fbit.ly%2Fcescquintero&sa=D&sntz=1&usg=AFQjCNETBVJQ0jT36V31pserP2jsCrYYmghttps://www.google.com/url?q=https%3A%2F%2Flaracasts.com%2F&sa=D&sntz=1&usg=AFQjCNEGrfcA_XQ_FzFZTNw5pH3QLWcHWA