Mastering Laravel

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

Mastering Laravel

Christopher John Pecoraro

1 customer reviews
Develop robust modern web-based software applications and RESTful APIs with Laravel, one of the hottest PHP frameworks
Mapt Subscription
FREE
$29.99/m after trial
eBook
$28.00
RRP $39.99
Save 29%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$28.00
$49.99
$29.99p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

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 1 reviews

Read More Reviews

Recommended for You

Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
Bootstrap Site Blueprints Book Cover
Bootstrap Site Blueprints
$ 26.99
$ 18.90
Learning Angular 2 Book Cover
Learning Angular 2
$ 31.99
$ 22.40
Learning jQuery - Fourth Edition Book Cover
Learning jQuery - Fourth Edition
$ 23.99
$ 4.80