Mastering Laravel

Develop robust modern web-based software applications and RESTful APIs with Laravel, one of the hottest PHP frameworks

Mastering Laravel

Mastering
Christopher John Pecoraro

3 customer reviews
Develop robust modern web-based software applications and RESTful APIs with Laravel, one of the hottest PHP frameworks
$39.99
$49.99
RRP $39.99
RRP $49.99
eBook
Print + eBook

Instantly access this course right now and get the skills you need in 2017

With unlimited access to a constantly growing library of over 4,000 eBooks and Videos, a subscription to Mapt gives you everything you need to get that next promotion or to land that dream job. Cancel anytime.

Free Sample

Book Details

ISBN 139781785285028
Paperback232 pages

Book Description

PHP continues to revive and Laravel is at its forefront. Laravel follows modern PHP's object-oriented best practices and reduces time-to-market, enabling you to build robust web and API-driven mobile applications that can be automatically tested and deployed.

With this book you will learn how to rapidly develop software applications using the Laravel 5 PHP framework.

This book walks you through the creation of an application, starting with behavior-driven design of entities. You'll explore various aspects of modern software including the RESTful API, and will be introduced to command bus. Laravel's annotations package is also explained and demonstrated. Finally, the book closes with a demonstration of different ways to deploy and scale your applications.

Table of Contents

Chapter 1: Designing Done Right with phpspec
A new era
Installing and configuring Laravel
TDD done right
phpspec
Entity creation
The MyCompany database schema
Designing with phpspec
Specifying with phpspec
Controllers
Summary
Chapter 2: Automating Tests – Migrating and Seeding Your Database
Using Laravel's migration feature
From schema to migration
Migration anatomy
Creating seeds
Database testing with PHPUnit
Functional testing with Behat
Summary
Chapter 3: Building Services, Commands, and Events
Request routing
Summary
Chapter 4: Creating RESTful APIs
RESTful APIs in Laravel
Essential CRUD
Bonus features
Controller creation
CRUD(L) by example
Model binding
Moving beyond CRUD
Nested controllers
Eloquent model casting
Route caching
Summary
Chapter 5: Using the Form Builder
History
Installing the HTML package
Building web pages with Laravel
Our example
Conclusion
Summary
Chapter 6: Taming Complexity with Annotations
Annotations in other programming languages
DocBlock annotations
Resource controller using DocBlock annotations
Single method routing
Scanning routes
Automatic scanning
Additional annotations
Using annotations in Laravel 5
Conclusion
Summary
Chapter 7: Filtering Requests with Middleware
The HTTP kernel
The basic middleware structure
Route middleware unravelled
Using middleware
Middleware exclusion and inclusion
Conclusion
Summary
Chapter 8: Querying the Database with the Eloquent ORM
Basic operations
Eloquent relations
Polymorphic relations
Conclusion
Summary
Chapter 9: Scaling Laravel
Scalability issues
Towards the enterprise
Route caching
Creating a master/slave database configuration
Summary
Chapter 10: Building, Compiling, and Testing with Elixir
Automating Laravel
Towards automation
From Gulp to Elixir
Getting started
Running Elixir
Setting up notifications
Combining CSS and JavaScript files with Elixir
Compiling with Laravel Elixir
Running tests with Elixir
Setting up a file watcher
Additional Laravel Elixir tasks
Summary

What You Will Learn

  • Convert specifications into classes and functions, using a specification-based behavioral-driven design (BDD)
  • Create a deployment script for a continuous delivery environment
  • Use Eloquent to interact with the database in an object-oriented manner
  • Create RESTful APIs to allow an application to interact with other programs
  • Easily scale software with route caching and the read/write configuration
  • Use DocBlock annotations to enhance controllers and reduce the amount of code required

Authors

Table of Contents

Chapter 1: Designing Done Right with phpspec
A new era
Installing and configuring Laravel
TDD done right
phpspec
Entity creation
The MyCompany database schema
Designing with phpspec
Specifying with phpspec
Controllers
Summary
Chapter 2: Automating Tests – Migrating and Seeding Your Database
Using Laravel's migration feature
From schema to migration
Migration anatomy
Creating seeds
Database testing with PHPUnit
Functional testing with Behat
Summary
Chapter 3: Building Services, Commands, and Events
Request routing
Summary
Chapter 4: Creating RESTful APIs
RESTful APIs in Laravel
Essential CRUD
Bonus features
Controller creation
CRUD(L) by example
Model binding
Moving beyond CRUD
Nested controllers
Eloquent model casting
Route caching
Summary
Chapter 5: Using the Form Builder
History
Installing the HTML package
Building web pages with Laravel
Our example
Conclusion
Summary
Chapter 6: Taming Complexity with Annotations
Annotations in other programming languages
DocBlock annotations
Resource controller using DocBlock annotations
Single method routing
Scanning routes
Automatic scanning
Additional annotations
Using annotations in Laravel 5
Conclusion
Summary
Chapter 7: Filtering Requests with Middleware
The HTTP kernel
The basic middleware structure
Route middleware unravelled
Using middleware
Middleware exclusion and inclusion
Conclusion
Summary
Chapter 8: Querying the Database with the Eloquent ORM
Basic operations
Eloquent relations
Polymorphic relations
Conclusion
Summary
Chapter 9: Scaling Laravel
Scalability issues
Towards the enterprise
Route caching
Creating a master/slave database configuration
Summary
Chapter 10: Building, Compiling, and Testing with Elixir
Automating Laravel
Towards automation
From Gulp to Elixir
Getting started
Running Elixir
Setting up notifications
Combining CSS and JavaScript files with Elixir
Compiling with Laravel Elixir
Running tests with Elixir
Setting up a file watcher
Additional Laravel Elixir tasks
Summary

Book Details

ISBN 139781785285028
Paperback232 pages
Read More
From 3 reviews

Read More Reviews