Muutke küpsiste eelistusi

Beginning Laravel: Build Websites with Laravel 5.8 2nd ed. [Pehme köide]

  • Formaat: Paperback / softback, 422 pages, kõrgus x laius: 254x178 mm, kaal: 832 g, 77 Illustrations, black and white; XVII, 422 p. 77 illus., 1 Paperback / softback
  • Ilmumisaeg: 06-Sep-2019
  • Kirjastus: APress
  • ISBN-10: 1484249909
  • ISBN-13: 9781484249901
Teised raamatud teemal:
  • Pehme köide
  • Hind: 53,33 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Tavahind: 62,74 €
  • Säästad 15%
  • Raamatu kohalejõudmiseks kirjastusest kulub orienteeruvalt 2-4 nädalat
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Tellimisaeg 2-4 nädalat
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 422 pages, kõrgus x laius: 254x178 mm, kaal: 832 g, 77 Illustrations, black and white; XVII, 422 p. 77 illus., 1 Paperback / softback
  • Ilmumisaeg: 06-Sep-2019
  • Kirjastus: APress
  • ISBN-10: 1484249909
  • ISBN-13: 9781484249901
Teised raamatud teemal:

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.


About the Author xi
About the Technical Reviewer xiii
Acknowledgments xv
Introduction xvii
Chapter 1 Introduction to Laravel 1(10)
Laravel's Flexibility
1(2)
How Laravel Works
3(8)
What Is the MVC Pattern?
7(2)
How the MVC Pattern Works
9(2)
Chapter 2 Setting Up Your Environment 11(30)
Composer
11(5)
Installing Composer Globally
12(1)
Installing Laravel Globally
13(1)
Installing Laravel Locally with Composer
14(2)
Introduction to Homestead, Valet, and Forge
16(21)
Forge: Painless PHP Servers
18(1)
Installing VirtualBox and Vagrant
19(6)
Installing Homestead Using Vagrant
25(2)
Configuring Homestead
27(1)
Shared Folders and Homestead
28(3)
Launching the Vagrant Box
31(3)
Homestead and MySQL
34(3)
How to Create a New Laravel Project
37(4)
Chapter 3 Routing, Controllers, Templates, and Views 41(34)
Route Definitions
41(7)
How to Find the Default Route Files
42(1)
Route and RESTful Controller
43(1)
How to List All Routes
43(5)
Creating Controllers, Views, and Managing Routes
48(14)
CRUD and the Seven Methods
51(7)
Models Acts as a Resource
58(3)
Models Act As Resources
61(1)
Resourceful Controllers
62(3)
The Importance of the Resourceful Controller
64(1)
How to Supplement the Resource Controller
64(1)
Getting User Input and Dependency Injection
65(3)
How a Blade Template Works with Controllers and Models
68(7)
Security in Blade
70(1)
Authentication Through Blade
70(1)
Control Structures in Blade
71(1)
Other Advantages of Blade Templates
72(3)
Chapter 4 Working with Models 75(38)
Route Model Binding: Custom and Implicit
75(5)
Implicit Route Binding
78(1)
Custom Route Binding
79(1)
Model Relations
80(24)
How Migrations Work with the Laravel Model
81(11)
Model and Faker Object
92(5)
Examining the Home Page
97(7)
Relations Between Model, Database, and Eloquent
104(9)
Creating Views to Show Relationships
106(7)
Chapter 5 Database Migration and Eloquent 113(54)
Introduction to Migration
113(1)
Introduction to Eloquent
114(1)
Introduction to Eloquent Relations
115(1)
One-to-One
116(5)
One-to-Many
121(7)
Separation of Concerns
128(4)
Many-to-Many
132(4)
Has-Many-Through
136(6)
Polymorphic Relations
142(14)
The Problem
143(1)
The Solution
144(12)
Summarizing All Relations
156(11)
Chapter 6 Handling User Data and Redirects 167(40)
How Redirect Methods Work
168(4)
What Is a Request Object?
172(2)
How Requests and Responses Work
174(1)
Introducing Validation
175(6)
Web Form Fundamentals
181(21)
Using the Laravel HTML and Form Packages
182(4)
Model Binding
186(3)
The Traditional Way of Form Inputs
189(13)
Form Request Validation
202(5)
Chapter 7 Using Tinker 207(6)
Handling a Database Using Tinker
207(4)
SQLite Is a Breeze
211(2)
Chapter 8 Authentication, Authorization, and Middleware 213(80)
Different Authentication Methods in the Company/Project/Task Management Application
214(14)
How Auth Controller Works and What Auth Middleware Is
228(7)
Middleware, Authentication, and Authorization in One Place
235(31)
The Company App's Model-View-Controller
241(14)
Home Page, Redirection, and Authentication
255(8)
Role of a User and Authorization
263(3)
Authorization Through the Blade Template
266(13)
Implementing Authorization Using Gates and Policies
279(14)
How Authorization Works
281(4)
How Policies Work
285(2)
Why Are Policies Needed?
287(6)
Chapter 9 Containers and Facades 293(20)
SOLID Design Principle
293(3)
Single Responsibility Principle
294(1)
The Open-Closed Principle
294(1)
Liskov Substitution Principle
295(1)
The Interface Segregation Principle
295(1)
Dependency Inversion Principle
295(1)
Interfaces and Method Injection
296(1)
Contracts vs. Facades
297(4)
How a Container Works in Laravel
301(5)
Containers and Classes
306(7)
Chapter 10 Working with the Mail Template 313(28)
Local Development
313(10)
Using Tinker to Find the Verified E-mail
319(2)
Changing the Route
321(2)
Sending E-mail and Notifications
323(18)
Sending E-mails
324(10)
How to Send Notifications
334(7)
Chapter 11 Events and Broadcasting 341(26)
What Are Events and Broadcasting?
341(1)
Setting Up Events and Broadcasting
342(25)
Creating Events
343(14)
Receiving Messages
357(9)
Autogenerating Events
366(1)
Chapter 12 Working with APIs 367(32)
What Is REST?
367(1)
Creating an API
368(17)
Working with Laravel Passport
385(10)
API Authentication
395(4)
Appendix: More New Features in Laravel 5.8 399(16)
What Is the Dump Server Feature?
399(8)
Improved artisan Command
407(3)
A Few More Additions
410(3)
Renaming the Mail Format Folder
410(1)
Changes to .env
410(1)
Changing the Look of Error Pages
411(1)
Improving Array and String Helper Functions
412(1)
Changes in Caching
412(1)
Where to Go from Here
413(2)
Index 415
Sanjib Sinha is a certified .NET Windows and web developer, specializing in Python, security programming, PHP and JavaScript; he won Microsoft's Community Contributor Award in 2011. As a published author, Sanjib Sinha has written Beginning Ethical Hacking with Kali LInux, Beginning Ethical Hacking with Python, and Beginning Laravel for Apress.