cta quote button

Best Laravel Books You Must Read

Read More

How Much Does It Cost to Hire Web Developers in Ukraine?

Our pricing is completely transparent: you pay your engineers’ salaries and a flat monthly fee for our services. No hidden charges.

Read More

1. Laravel: Up and Running: A Framework for Building Modern PHP Apps (2016)

What sets Laravel apart from other PHP web frameworks? Speed and simplicity, for starters. This rapid application development framework and its vast ecosystem of tools let you quickly build new sites and applications with clean, readable code. With this practical guide, Matt Stauffer–a leading teacher and developer in the Laravel community–provides the definitive introduction to one of today's most popular web frameworks.

The book's high-level overview and concrete examples will help experienced PHP web developers get started with Laravel right away. By the time you reach the last page, you should feel comfortable writing an entire application in Laravel from scratch.
Dive into several features of this framework, including:

  • Blade, Laravel's powerful, custom templating tool
  • Tools for gathering, validating, normalizing, and filtering user-provided data
  • Laravel's Eloquent ORM for working with the application's databases
  • The Illuminate request object, and its role in the application lifecycle
  • PHPUnit, Mockery, and PHPSpec for testing your PHP code
  • Laravel's tools for writing JSON and RESTful APIs
  • Interfaces for file system access, sessions, cookies, caches, and search
  • Tools for implementing queues, jobs, events, and WebSocket event publishing
  • Laravel's specialty packages: Scout, Passport, Cashier, Echo, Elixir, Valet, and Socialite

Author(s): Matt Stauffer

2. Full-Stack Vue.js 2 and Laravel 5: Bring the frontend and backend together with Vue, Vuex, and Laravel (2017)

Learn to build professional full-stack web apps with Vue.js and Laravel

Key Features

  • End-to-end guide on full-stack development with Vue.js 2 and Laravel 5
  • Developing modern user interfaces with a reusable component-based architecture
  • Use Webpack to improve applications performance and development workflow
  • Explore the features of Vuex to build applications that are powerful, consistent, and maintainable

Book Description

Vue is a JavaScript framework that can be used for anything from simple data display to sophisticated front-end applications and Laravel is a PHP framework used for developing fast and secure web-sites. This book gives you practical knowledge of building modern full-stack web apps from scratch using Vue with a Laravel back end.

In this book, you will build a room-booking website named “Vuebnb”. This project will show you the core features of Vue, Laravel and other state-of-the-art web development tools and techniques.

The book begins with a thorough introduction to Vue.js and its core concepts like data binding, directives and computed properties, with each concept being explained first, then put into practice in the case-study project.

You will then use Laravel to set up a web service and integrate the front end into a full-stack app. You will be shown a best-practice development workflow using tools like Webpack and Laravel Mix.

With the basics covered, you will learn how sophisticated UI features can be added using ES+ syntax and a component-based architecture. You will use Vue Router to make the app multi-page and Vuex to manage application state.

Finally, you will learn how to use Laravel Passport for authenticated AJAX requests between Vue and the API, completing the full-stack architecture. Vuebnb will then be prepared for production and deployed to a free Heroku cloud server.

What you will learn

  • Core features of Vue.js to create sophisticated user interfaces
  • Build a secure backend API with Laravel
  • Learn a state-of-the-art web development workflow with Webpack
  • Full-stack app design principles and best practices
  • Learn to deploy a full-stack app to a cloud server and CDN
  • Managing complex application state with Vuex
  • Securing a web service with Laravel Passport

Who This Book Is For

This book targets developers who are new to Vue.js, Laravel, or both, and are seeking a practical, best-practice approach to development with these technologies.

They must have some knowledge of HTML, CSS and Javascript.

Table of Contents

  1. Hello Vue: An Introduction To Vue.js
  2. Prototyping Vuebnb, Your First Vue.js Project
  3. Hello Laravel: Getting Started With Laravel
  4. Building A Web Service With Laravel
  5. Integrating Laravel And Vue.js With Webpack
  6. Composing Widgets With Vue.js Components
  7. Building A Multi-Page App With Vue
  8. Managing Your Application State With Vuex
  9. Adding A User Login & API Authentication With Passport
  10. Deploying A Full-Stack App To The Cloud

Author(s): Anthony Gore

3. Learning Laravel’s Eloquent (2015)

Develop amazing data-based applications with Eloquent, the Laravel framework ORM

About This Book

  • Build highly efficient applications with the Eloquent ORM using an expressive syntax
  • Get to grips with the power of relationships and how Eloquent handles them
  • Go beyond simple theory with various step-by-step code examples

Who This Book Is For

This book is perfect for developers with some basic knowledge of PHP development, but are new to the Eloquent ORM. However, developers with previous Laravel and Eloquent experience will also benefit from the in-depth analysis of specific classes and methodologies in the book.

What You Will Learn

  • Configure a new Laravel project and set up database connections in minutes
  • Build and work with models to handle your data with an expressive syntax
  • Define relations between your models to create complex functionalities
  • Query your database using relations simply
  • Use collections to gather results and perform many operations on them with a powerful data structure
  • Use the Eloquent ORM without Laravel
  • Control your models during the request lifecycle with event listeners and observers

In Detail

Learning Laravel’s Eloquent starts off by taking you through setting up your first project and guiding you in creating a perfect Laravel environment. You will learn how to build the right database structure with the Migrations system and the Schema Builder class. Next, you will be introduced to the main element of Eloquent: the model. After treating the model as a single, isolated entity, you will learn how to create relations between them. You will be taken through organizing, filtering, and sorting your data with collections. You will then learn to enhance an application with new features using events and by creating new observers. Towards the end of the book, you will discover how to install, configure, and use the Eloquent ORM without Laravel. The book concludes by walking you through how to deal with complex problems and build advanced and flexible systems.

Author(s): Francesco Malatesta

4. Laravel 5 Essentials (2015)

Explore the fundamentals of Laravel, one of the most expressive and robust PHP frameworks available

About This Book

  • Create a dynamic web application that can read and write data to a database
  • Improve your PHP skills and develop a new outlook on solving programming issues
  • A step-by-step guide that covers the different steps involved in creating a complete Laravel application in an easy-to-understand manner

Who This Book Is For

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.

What You Will Learn

  • Set up a development environment for working with Laravel apps
  • Create a working Laravel application from start to finish
  • Interact with data and discover Eloquent, Laravel’s own ORM
  • Create and run migrations and seeds
  • Simplify command-line tasks by building Artisan commands
  • Protect your app by securing it from common security vulnerabilities
  • Perform end-to-end testing after learning the basics of testing in Laravel
  • Learn about Laravel’s other features including service providers, packages, queue workers, and helpers for working with strings and arrays

In Detail

Laravel has established itself as one of the most popular PHP frameworks over the past couple of years. Its popularity comes due to its ease of use, expressive syntax, and the number of components it has, allowing you to achieve practically any task in a modern PHP application.

If you’ve not had the opportunity to dive into Laravel yet, then this book will be the perfect companion, as it covers the fundamentals Laravel is built on in a thorough yet easy-to-follow manner. To make this book your best learning source, we have covered integral topics such as preparing an environment for working with Laravel applications, creating your first Laravel application from start to finish, a tour of Laravel’s ORM Eloquent, and more advanced topics such as testing, user authentication, and security. Being one of the most interesting features in Laravel, we also cover an overview of Artisan, including descriptions of some of its tasks. Post this, we talk about testing and security. By the end of this book, you will be able to create robust PHP websites and web applications quickly and efficiently.

Author(s): Martin Bean

5. Beginning Laravel: A beginner’s guide to application development with Laravel 5.3 (2016)

Learn about dependency injection, interfaces, service providers, SOLID design, and more with practical and real-world code examples. This book covers everything you need to get started in application development with Laravel 5.3. Beginning Laravel covers features such as method injection, contracts, and authentication.

After reading this book, you can develop any application using Laravel 5. It details all you need to know, including the model-view-controller pattern, SQLite databases, routing, authorization, and building CRUD applications.

What You Will Learn
  • Work with the new Laravel framework and its new features
  • Develop web applications with Laravel
  • Absorb the concepts of authentication and database migration
  • Manage databases with Eloquent ORM
  • Use middleware, contracts, and facades
Who This Book Is For

Readers who are new to Laravel development.

Author(s): Sanjib Sinha

6. Laravel Basics: Creating Web Apps. It’s Simple. (2016)

This book is an exploration of Laravel, which is a framework for web application development. The first part of the book explains to you what Laravel is and how it can be used for the development of apps. Laravel supports the implementation and use of notifications. This book guides you on how to implement notifications in your application. The various types of notifications, including mail notifications, database notifications, broadcast notifications, SMS notifications, and slack notifications are all discussed, and you are guided on how to implement these in your application. Lack attachments are also explored. You are guided on how to deal with notification events. Custom channels are also examined in detail, along with event broadcasting. Laravel 5.3 has improved this feature, which was still supported in the earlier versions of Laravel. The necessary drivers for this are discussed and you are guided on how to install them. You will also learn how to listen for the broadcast events and how to authorize the use of the channels. You should learn to define broadcast events, and this book guides you in this. Broadcast data should be handled carefully. You are excellently guided in this. Authentication, especially on the user part, is of great importance. This book guides you on how to implement this using the Laravel Passport. The necessary drivers for you to work with this are explored, and you will be taught how to install them. You have also been guided on how to generate and write the mailables. The following topics are discussed in this book: – What is Laravel? – Notifications – Event/ WebSockets Broadcasting – Laravel Passport – Mailable Objects

Author(s): Gregory Blake

7. Design Patterns in PHP and Laravel (2016)

Learn each of the original gang of four design patterns, and how they are relevant to modern PHP and Laravel development. Written by a working developer who uses these patterns every day, you will easily be able to implement each pattern into your workflow and improve your development. Each pattern is covered with full examples of how it can be used. 

Too often design patterns are explained using tricky concepts, when in fact they are easy to use and can enrich your everyday development. Design Patterns in PHP and Laravel aims to break down tricky concepts into humorous and easy-to-recall details, so that you can begin using design patterns easily in your everyday work with PHP and Laravel. 
This book teaches you design patterns in PHP and Laravel using real-world examples and plenty of humor.

What You Will Learn 
  • Use the original gang of four design patterns in your PHP and Laravel development 
  • How each pattern should be used 
  • Solve problems when using the patterns
  • Remember each pattern using mnemonics 
Who This Book Is For 
People using Laravel and PHP to do their job and want to improve their understanding of design patterns.

Author(s): Kelt Dockins

8. Mastering Laravel (2015)

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

About This Book

  • Master the flashiest functionalities Laravel has to offer
  • Use PHPSpec to design testable software by specification to ensure quality code
  • Explore the best-practices and latest features of Laravel 5

Who This Book Is For

If you are an experienced or a capable PHP programmer who has a basic understanding of the concepts of modern PHP (at least version 5.4), this book is ideal for you.

Basic object-oriented programming and database knowledge is expected. You should already know your way around Laravel, or have at least experimented with the framework.

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

In Detail

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.

Author(s): Christopher John Pecoraro

9. Laravel Design Patterns and Best Practices (2014)

Enhance the quality of your web applications by efficiently implementing design patterns in Laravel

About This Book

  • Create fully functional web applications using design patterns in Laravel
  • Explore various techniques to adapt different software patterns that suit your needs
  • Get to know the best practices to utilize when making a web application
  • Concise and practical guide to master the MVC approach of Laravel and its benefits

Who This Book Is For

This book is intended for web application developers working with Laravel who want to increase the efficiency of their web applications. It assumes that you have some experience with the Laravel PHP framework and are familiar with coding OOP methods.

What You Will Learn

  • Learn about the design pattern fundamentals in OOP programming
  • Get acquainted with the structure of MVC architecture and use objects in your applications
  • Discover Laravel’s approach to MVC and its benefits
  • Work with various design patterns used in Laravel such as the Builder (Manager) pattern, Factory pattern, Repository pattern, and Strategy pattern
  • Create and maintain web applications using Laravel best practices
  • Implement PHP design patterns to solve commonly occurring problems

In Detail

This book covers how to develop different applications and solve recurring problems using Laravel 4 design patterns. It will walk you through the widely used design patterns—the Builder (Manager) pattern, Factory pattern, Repository pattern, and Strategy pattern—and will empower you to use these patterns while developing various applications with Laravel. This book will help you find stable and acceptable solutions, thereby improving the quality of your applications. Throughout the course of the book, you will be introduced to a number of clear, practical examples about PHP design patterns and their usage in various projects. You will also get acquainted with the best practices for Laravel that will greatly reduce the probability of introducing errors into your web applications.

By the end of the book, you will be accustomed to the best practices and the important design patterns used in Laravel to make a great website.

Author(s): Arda Kilicdagi, H. Ibrahim YILMAZ

10. Laravel Application Development Cookbook (2013)

Over 90 recipes to learn all the key aspects of Laravel, including installation, authentication, testing, and the deployment and integration of third parties in your application

Overview

  • Install and set up a Laravel application and then deploy and integrate third parties in your application
  • Create a secure authentication system and build a RESTful API
  • Build your own Composer Package and incorporate JavaScript and AJAX methods into Laravel

In Detail

When creating a web application, there are many PHP frameworks from which to choose. Some are very easy to set up, and some have a much steeper learning curve. Laravel offers both paths. You can do a quick installation and have your app up-and-running in no time, or you can use Laravel’s extensibility to create an advanced and fully-featured app.

Laravel Application Development Cookbook provides you with working code examples for many of the common problems that web developers face. In the process, it will also allow both new and existing Laravel users to expand their knowledge of the framework.

This book will walk you through all aspects of Laravel development. It begins with basic set up and installation procedures, and continues through more advanced use cases.

You will also learn about all the helpful features that Laravel provides to make your development quick and easy. For more advanced needs, you will also see how to utilize Laravel’s authentication features and how to create a RESTful API.

In the Laravel Application Development Cookbook, you will learn everything you need to know about a great PHP framework, with working code that will get you up-and-running in no time.

What you will learn from this book

  • Set up a virtual host and development environment in Apache
  • Set up a user authentication system
  • Use the RESTful controllers
  • Debug and profile your application
  • Store and retrieve content from the cloud
  • Use the Artisan command-line tool
  • Integrate JavaScript and jQuery into your Laravel app
  • Write unit tests for Laravel

Approach

This book is written in the form of a Cookbook, with practical recipes for building web applications and explaining some of the more complex features of Laravel.

Who this book is written for

The Laravel Application Development Cookbook is for PHP developers who are new to Laravel or development frameworks in general, as well as experienced Laravel developers looking to expand their knowledge. This book assumes that the reader has some familiarity with PHP.

Author(s): Terry Matula

11. Modern PHP: New Features and Good Practices (2015)

PHP is experiencing a renaissance, though it may be difficult to tell with all of the outdated PHP tutorials online. With this practical guide, you’ll learn how PHP has become a full-featured, mature language with object-orientation, namespaces, and a growing collection of reusable component libraries.

Author Josh Lockhart—creator of PHP The Right Way, a popular initiative to encourage PHP best practices—reveals these new language features in action. You’ll learn best practices for application architecture and planning, databases, security, testing, debugging, and deployment. If you have a basic understanding of PHP and want to bolster your skills, this is your book.

  • Learn modern PHP features, such as namespaces, traits, generators, and closures
  • Discover how to find, use, and create PHP components
  • Follow best practices for application security, working with databases, errors and exceptions, and more
  • Learn tools and techniques for deploying, tuning, testing, and profiling your PHP applications
  • Explore Facebook’s HVVM and Hack language implementations—and how they affect modern PHP
  • Build a local development environment that closely matches your production server

Author(s): Josh Lockhart

12. Laravel 5.x Cookbook (2016)

Key Features

  • Leverage the amazing new features of Laravel 5.x to create cutting-edge responsive PHP applications.
  • Create apps with interoperability features and extend these features to your existing applications as well.
  • Over 60 recipes that combine tried and tested Laravel tips for getting your app working.

Book Description

Laravel is a prominent member of a new generation of web frameworks. It is one of the most popular PHP frameworks and is also free and an open source. Laravel 5 is a substantial upgrade with a lot of new toys, at the same time retaining the features that made Laravel wildly successful. It comes with plenty of architectural as well as design-based changes.

The book is a blend of numerous recipes that will give you all the necessary tips you need to build an application. It starts with basic installation and configuration tasks and will get you up-and-running in no time. You will learn to create and customize your PHP app and tweak and re-design your existing apps for better performance. You will learn to implement practical recipes to utilize Laravel’s modular structure, the latest method injection, route caching, and interfacing techniques to create responsive modern-day PHP apps that stand on their own against other apps. Efficient testing and deploying techniques will make you more confident with your Laravel skills as you move ahead with this book.

Towards the end of the book, you will understand a number of add-ons and new features essential to finalize your application to make it ready for subscriptions. You will be empowered to get your application out to the world.

What you will learn

  • Optimize Your Gulp and Elixir Workflow
  • Use Travis to run tests with every push
  • Build and test your view-based route in PHPUnit
  • Explore workflows for migrations and seeding
  • Implement Angular in your Laravel applications
  • Set up a user authentication system
  • Integrate the new Billing library and Stripe in your Laravel application
  • Use the Artisan command-line tool
  • Test your App in Production with Behat

About the Author

Alfred Nutile is an Enterprise Architect and Laravel lead based in Western Massachusetts. He’s been working in the industry since the mid 90’s. He started in PHP and MySQL back around that time and has worked with Ruby on Rails, Drupal, and Angular along the way. He introduced Laravel into an enterprise web stack, where he is currently contracted at, as Laravel proved itself as an amazing framework to build API’s and Angular heavy application.

You can read more about him and checkout his blog at http://www.alfrednutile.info/ or follow him on Twitter at https://twitter.com/alnutile

Make sure to checkout the discount LaraCasts is offering those who buy the book!

Get a coupon for 50% on your first bill. Make it a yearly subscription and save $43!

Coupon Code: LaracastsLovesPackt

https://laracasts.com/signup?plan=yearly&coupon=LaracastsLovesPackt.

Table of Contents

  1. Setting Up and Installing Laravel
  2. Using Composer Packages
  3. Routing
  4. Building Views and Adding Style
  5. Working with Data
  6. Adding Angular to Your App
  7. Authentication, Security, and Subscriptions
  8. Testing and Debugging Your Application
  9. Adding Advanced Features to Your App
  10. Deploying Your App

Author(s): Alfred Nutile