Cargando…

Getting Started with Laravel 4.

This book follows a practical and easy-to-follow approach and is packed with real-world examples to understand all the fundamentals and concepts in a very concise way. This book is ideal for web developers who want to get up to speed with Laravel quickly. You are expected to have some experience wit...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Saunier, Raphaël
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Packt Publishing, 2014.
Colección:Community experience distilled
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Meeting Laravel; The need for frameworks; The limitations of homemade tools; Laravel to the rescue; A new approach to developing PHP applications; A more robust HTTP foundation; Embracing PHP; Laravel's main features and sources of inspiration; Expressiveness and simplicity; Prettifying PHP; Responsibilities, naming and conventions; Helping you become a better developer; Structure of a Laravel application; The application container and request lifecycle; Exploring Laravel
  • Moving from Version 3 to Version 4Summary; Chapter 2: Composer All Over; Working with the command line; How does Composer work; Installation; UNIX (Mac OS, Linux); Windows; Creating a new Laravel application; Finding and installing new packages; Additional advice; Summary; Chapter 3: Your First Application; Sketching out the application; Entities, relationships, and attributes; The map of our application; Starting the application; Using the built-in development server; Writing the first routes; Restricting the route parameters; Catching the missing routes; Handling redirections
  • Returning viewsPreparing the database; Creating the Eloquent models; Building the database schema; Seeding the database; Mastering Blade; Creating a master view; Back to the routes; The overview page; Displaying a cat's page; Adding, editing, and deleting cats; Summary; Chapter 4: Authentication and Security; Authenticating users; Creating the user model; Creating the necessary database schema; Authentication routes and views; Validating user input; Securing your application; Cross-site request forgery; Escaping content to prevent cross-site scripting
  • XSS; Avoiding SQL injection
  • Using mass-assignment with careCookies
  • secure by default; Forcing HTTPS when exchanging sensitive data; Summary; Chapter 5: Testing
  • It's Easier Than You Think; The benefits of testing; The anatomy of a test; Unit testing with PHPUnit; Defining what you expect with assertions; Preparing the scene and cleaning up objects; Expecting exceptions; Test interdependent classes in isolation; End-to-end testing; Testing
  • batteries included; Framework assertions; Impersonating users; Testing with a database; Inspecting the rendered views; Summary; Chapter 6: A Command Line Companion Called Artisan
  • Keeping up with the latest changesInspecting and interacting with your application; Fiddling with the internals; Turn the engine off; Fine-tune your application; Installing third-party commands; Speed up your workflow with generators; Generating migrations; Generating HTML forms; Generating everything else; Deploying with a single command; Deployment, the old-school way; Rolling out your own artisan commands; Creating the command; The anatomy of a command; Writing the command; Summary; Chapter 7: Architecting Ambitious Applications; Moving from simple routing to powerful controllers