Limit search to available items
Book Cover
E-book
Author Bean, Martin, author

Title Laravel 5 essentials : explore the fundamentals of Laravel, one of the most expressive and robust PHP frameworks available / Martin Bean
Published Birmingham, UK : Packt Publishing, 2015

Copies

Description 1 online resource (1 volume) : illustrations
Series Community experience distilled
Community experience distilled.
Contents Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: An Introduction to 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 service container and request lifecycle
Exploring LaravelChanges in Version 5 from Version 4; Summary; Chapter 2: Setting Up a Development Environment; Meeting Composer; Working with the command line; Meet Homestead; Installing Homestead; Everyday Homestead usage; Adding additional websites; Connecting to your databases; Creating a new Laravel application; Summary; Chapter 3: Your First Application; Planning our application; Entities, relationships, and attributes; The map of our application; Starting the application; Setting the application namespace; Writing the first routes; Restricting the route parameters
Handling HTTP exceptionsPerforming redirections; Returning views; Preparing the database; Creating 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; Route-model binding; Adding, editing, and deleting cats; Moving from simple routing to powerful controllers; Resource controllers; Summary; Chapter 4: Eloquent conventions; Retrieving data; Filtering records; Saving data; Mass assignment; Deleting data; Soft deletion; Including deleted models in results; Query scopes
RelationshipsOne-to-one; Many-to-many; Storing data in the pivot table; Has-many-through; Polymorphic relations; Many-to-many polymorphic relations; Model events; Registering event listeners; Model observers; Collections; Checking if a key exists in a collection; 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; Testing interdependent classes in isolation; End-to-end testing; Testing -- batteries included
Framework assertionsImpersonating users; Testing with a database; Inspecting the rendered views; Summary; Chapter 6: A Command-line Companion Called Artisan; Keeping up with the latest changes; Inspecting and interacting with your application; Fiddling with the internals; Turning the engine off; Fine-tuning your application; Caching routes; Generators; Rolling out your own Artisan commands; Creating the command; The anatomy of a command; Writing the command; Scheduling commands; Viewing output of scheduled commands; Summary; Chapter 7: Authentication and Security; Authenticating users
Summary This book is intended for PHP web developers who have an interest in Laravel and who know the basics of the framework in theory, but don't really know how to use it in practice. No experience of using frameworks is required, but it is assumed you are at least familiar with building dynamic websites in PHP already
Notes Includes index
English
Online resource; title from cover (Safari, viewed May 26, 2015)
Subject Web applications.
Application software.
PHP (Computer program language)
COMPUTERS -- General.
Application software
PHP (Computer program language)
Web applications
Form Electronic book
ISBN 9781785283291
1785283294
1785283014
9781785283017
Other Titles Laravel five essentials
Explore the fundamentals of Laravel, one of the most expressive and robust PHP frameworks available