Matt Stauer
Laravel
Up & Running
A FRAMEWORK FOR BUILDING MODERN PHP APPS
Matt Stauer
Laravel: Up and Running
A Framework for Building Modern PHP Apps
Boston Farnham Sebastopol
Tokyo
Beijing Boston Farnham Sebastopol
Tokyo
Beijing
978-1-491-93608-5
[LSI]
Laravel: Up and Running
by Matt Stauffer
Copyright © 2017 Matt Stauffer. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://oreilly.com/safari). For more information, contact our corporate/insti‐
tutional sales department: 800-998-9938 or corporate@oreilly.com.
Editor: Allyson MacDonald
Production Editor: Colleen Lobner
Copyeditor: Rachel Head
Proofreader: Kim Cofer
Indexer: Angela Howard
Interior Designer: David Futato
Cover Designer: Randy Comer
Illustrator: Rebecca Demarest
December 2016: First Edition
Revision History for the First Edition
2016-11-14: First Release
2017-02-03: Second Release
See http://oreilly.com/catalog/errata.csp?isbn=9781491936085 for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. Laravel: Up and Running, the cover
image of a gemsbok, and related trade dress are trademarks of O’Reilly Media, Inc.
While the publisher and the author have used good faith efforts to ensure that the information and
instructions contained in this work are accurate, the publisher and the author disclaim all responsibility
for errors or omissions, including without limitation responsibility for damages resulting from the use of
or reliance on this work. Use of the information and instructions contained in this work is at your own
risk. If any code samples or other technology this work contains or describes is subject to open source
licenses or the intellectual property rights of others, it is your responsibility to ensure that your use
thereof complies with such licenses and/or rights.
is book is dedicated to my gracious and inspiring wife, Tereva, my joyful and coura‐
geous son, Malachi, and my beautiful daughter, Mia, who spent the majority of this
book’s creation in her mama’s belly.