Book description
Develop cutting-edge websites and applications using the new features of Laravel 5.8. This book starts with an introduction to Laravel and takes a glance at its newly introduced features. Moving on to setting up your development environment, you will learn how the composer works. In addition to this, you will be introduced to Valet, Homestead, Virtual Box, Vagrant, and Forge in Laravel. With this foundation, you will be ready to get started writing your first Laravel apps.
To do so, you will learn to manage routes and controllers and how the Blade template works. Moving on to models, you will work with route model binding and get to know the relationship between models, databases, and Eloquent. Along the way you will define methods on your Eloquent model classes using different types of relationships.Shifting focus to handling user data, you will see how redirect methods work. You will also get to know the inner workings of requests and responses. Continuing the data theme, Beginning Laravel covers basic and grouped artisan commands and how to handle databases with Tinker. By being able to handle data effectively, your applications will come alive for your users, giving them the functionality they need.
The last section of the book handles core concepts such as sending emails, alerting users via notifications, and implementing SOLID design principles. You will see how to decouple your application classes by using events and listeners.
What You Will Learn
- Protect your app with authentication and authorization
- Build a complex relationship between entities using Eloquent models
- Take advantage of containers and facades
- Use the mail template
- Create and configure events
- Work with Laravel Passport
- Deploy API authentication
- Discover new Laravel 5.8 features such as dump server and email verification
Who This Book Is For
Those new to Laravel and PHP web development or those who have some background in PHP/Laravel who are new to Laravel's newest release.
Table of contents
- Cover
- Front Matter
- 1. Introduction to Laravel
- 2. Setting Up Your Environment
- 3. Routing, Controllers, Templates, and Views
- 4. Working with Models
- 5. Database Migration and Eloquent
- 6. Handling User Data and Redirects
- 7. Using Tinker
- 8. Authentication, Authorization, and Middleware
- 9. Containers and Facades
- 10. Working with the Mail Template
- 11. Events and Broadcasting
- 12. Working with APIs
- Back Matter
Product information
- Title: Beginning Laravel: Build Websites with Laravel 5.8
- Author(s):
- Release date: September 2019
- Publisher(s): Apress
- ISBN: 9781484249918
You might also like
book
Laravel 5 Essentials
Explore the fundamentals of Laravel, one of the most expressive and robust PHP frameworks available In …
book
Beginning Laravel: A beginner's guide to application development with Laravel 5.3
Learn about dependency injection, interfaces, service providers, SOLID design, and more with practical and real-world code …
video
Advanced Laravel and Vue.js: Build a YouTube Clone
If you're looking for a course that will help you get to grips with the advanced …
book
Design Patterns in PHP and Laravel
Learn each of the original gang of four design patterns, and how they are relevant to …