Preface |
|
1 | (6) |
|
Chapter 1 Meeting La ravel |
|
|
7 | (14) |
|
|
8 | (1) |
|
The limitations of homemade tools |
|
|
8 | (1) |
|
|
8 | (1) |
|
A new approach to developing PHP applications |
|
|
9 | (2) |
|
A more robust HTTP foundation |
|
|
9 | (1) |
|
|
10 | (1) |
|
Laravel's main features and sources of inspiration |
|
|
11 | (5) |
|
Expressiveness and simplicity |
|
|
12 | (1) |
|
|
13 | (1) |
|
Responsibilities, naming, and conventions |
|
|
13 | (2) |
|
Helping you become a better developer |
|
|
15 | (1) |
|
Structure of a Laravel application |
|
|
16 | (3) |
|
The application container and request lifecycle |
|
|
17 | (1) |
|
|
17 | (1) |
|
Moving from Version 3 to Version 4 |
|
|
18 | (1) |
|
|
19 | (2) |
|
Chapter 2 Composer All Over |
|
|
21 | (8) |
|
Working with the command line |
|
|
22 | (1) |
|
|
22 | (1) |
|
|
23 | (1) |
|
|
23 | (1) |
|
|
24 | (1) |
|
Creating a new Laravel application |
|
|
24 | (1) |
|
Finding and installing new packages |
|
|
25 | (1) |
|
|
26 | (1) |
|
|
27 | (2) |
|
Chapter 3 Your First Application |
|
|
29 | (20) |
|
Sketching out the application |
|
|
30 | (2) |
|
Entities, relationships, and attributes |
|
|
30 | (1) |
|
The map of our application |
|
|
30 | (2) |
|
|
32 | (1) |
|
Using the built-in development server |
|
|
32 | (1) |
|
|
33 | (3) |
|
Restricting the route parameters |
|
|
33 | (2) |
|
Catching the missing routes |
|
|
35 | (1) |
|
|
35 | (1) |
|
|
35 | (1) |
|
|
36 | (3) |
|
Creating the Eloquent models |
|
|
36 | (1) |
|
Building the database schema |
|
|
37 | (1) |
|
|
38 | (1) |
|
|
39 | (2) |
|
|
40 | (1) |
|
|
41 | (6) |
|
|
42 | (1) |
|
|
43 | (1) |
|
Adding, editing, and deleting cats |
|
|
44 | (3) |
|
|
47 | (2) |
|
Chapter 4 Authentication and Security |
|
|
49 | (12) |
|
|
49 | (8) |
|
|
49 | (1) |
|
Creating the necessary database schema |
|
|
50 | (2) |
|
Authentication routes and views |
|
|
52 | (4) |
|
|
56 | (1) |
|
Securing your application |
|
|
57 | (3) |
|
Cross-site request forgery |
|
|
57 | (1) |
|
Escaping content to prevent cross-site scripting -- XSS |
|
|
58 | (1) |
|
|
59 | (1) |
|
Using mass-assignment with care |
|
|
59 | (1) |
|
Cookies -- secure by default |
|
|
60 | (1) |
|
Forcing HTTPS when exchanging sensitive data |
|
|
60 | (1) |
|
|
60 | (1) |
|
Chapter 5 Testing -- It's Easier Than You Think |
|
|
61 | (12) |
|
|
62 | (1) |
|
|
62 | (2) |
|
Unit testing with PHPUnit |
|
|
64 | (3) |
|
Defining what you expect with assertions |
|
|
64 | (1) |
|
Preparing the scene and cleaning up objects |
|
|
65 | (1) |
|
|
65 | (1) |
|
Testing interdependent classes in isolation |
|
|
66 | (1) |
|
|
67 | (4) |
|
Testing -- batteries included |
|
|
67 | (1) |
|
|
68 | (1) |
|
|
69 | (1) |
|
|
69 | (2) |
|
Inspecting the rendered views |
|
|
71 | (1) |
|
|
71 | (2) |
|
Chapter 6 A Command-line Companion Called Artisan |
|
|
73 | (12) |
|
Keeping up with the latest changes |
|
|
73 | (1) |
|
Inspecting and interacting with your application |
|
|
74 | (2) |
|
Fiddling with the internals |
|
|
75 | (1) |
|
|
76 | (1) |
|
Fine-tuning your application |
|
|
76 | (1) |
|
Installing third-party commands |
|
|
76 | (4) |
|
Speeding up your workflow with generators |
|
|
77 | (1) |
|
|
78 | (1) |
|
|
78 | (1) |
|
Generating everything else |
|
|
79 | (1) |
|
Deploying with a single command |
|
|
79 | (1) |
|
Deployment, the old-school way |
|
|
79 | (1) |
|
Rolling out your own artisan commands |
|
|
80 | (3) |
|
|
80 | (1) |
|
|
81 | (1) |
|
|
82 | (1) |
|
|
83 | (2) |
|
Chapter 7 Architecting Ambitious Applications |
|
|
85 | (12) |
|
Moving from simple routing to powerful controllers |
|
|
86 | (2) |
|
Favoring explicit routing |
|
|
87 | (1) |
|
Straightforward REST routing |
|
|
87 | (1) |
|
Supercharging your models |
|
|
88 | (4) |
|
Simple performance tricks |
|
|
88 | (1) |
|
|
89 | (1) |
|
Selecting only what you need |
|
|
89 | (1) |
|
|
89 | (1) |
|
Foolproof models with soft deletes |
|
|
90 | (1) |
|
|
90 | (1) |
|
Listening for model events |
|
|
91 | (1) |
|
The handy paginator class |
|
|
91 | (1) |
|
Environment configuration made easy |
|
|
92 | (2) |
|
|
93 | (1) |
|
Adding your own configuration settings |
|
|
94 | (1) |
|
Bringing in your own classes |
|
|
94 | (1) |
|
Playing nice with the frontend |
|
|
95 | (1) |
|
|
96 | (1) |
|
Appendix: An Arsenal of Tools |
|
|
97 | (12) |
|
|
97 | (3) |
|
The usage examples of array helpers |
|
|
98 | (2) |
|
String and text manipulation |
|
|
100 | (1) |
|
|
100 | (1) |
|
|
100 | (1) |
|
|
101 | (1) |
|
|
101 | (2) |
|
|
101 | (1) |
|
File manipulation methods |
|
|
102 | (1) |
|
|
103 | (1) |
|
Easier date and time handling with Carbon |
|
|
104 | (2) |
|
Instantiating Carbon objects |
|
|
105 | (1) |
|
Outputting user-friendly timestamps |
|
|
105 | (1) |
|
|
105 | (1) |
|
Carbon for Eloquent DateTime properties |
|
|
106 | (1) |
|
Don't wait any longer with queues |
|
|
106 | (2) |
|
Creating a job and pushing it onto the queue |
|
|
106 | (1) |
|
Listening to a queue and executing jobs |
|
|
107 | (1) |
|
Getting notified when a job fails |
|
|
108 | (1) |
|
Queues without background processes |
|
|
108 | (1) |
|
|
108 | (1) |
Index |
|
109 | |