Preface |
|
1 | (6) |
|
Chapter 1 Building a URL Shortener Website |
|
|
7 | (16) |
|
Creating a database and migrating our URL shortener's table |
|
|
7 | (4) |
|
|
11 | (2) |
|
|
13 | (2) |
|
Saving data to the database |
|
|
15 | (3) |
|
Validating the users' input |
|
|
16 | (1) |
|
Returning the messages to the view |
|
|
17 | (1) |
|
Diving further into controller and processing the form |
|
|
18 | (2) |
|
Getting individual URL from the database and redirecting |
|
|
20 | (2) |
|
|
22 | (1) |
|
Chapter 2 Building a To-do List with Ajax |
|
|
23 | (16) |
|
Creating and migrating our to-do list's database |
|
|
23 | (2) |
|
|
25 | (1) |
|
|
26 | (4) |
|
Inserting data to the database with Ajax |
|
|
30 | (4) |
|
Retrieving the list from the database |
|
|
34 | (1) |
|
How to allow only Ajax requests |
|
|
34 | (2) |
|
Allowing the request using route filters |
|
|
35 | (1) |
|
Allowing the request using the controller side |
|
|
35 | (1) |
|
|
36 | (2) |
|
|
38 | (1) |
|
Chapter 3 Building an Image Sharing Website |
|
|
39 | (20) |
|
Creating a database and migrating the images table |
|
|
39 | (2) |
|
|
41 | (1) |
|
Setting custom configuration values |
|
|
42 | (1) |
|
Installing a third-party library |
|
|
43 | (1) |
|
Creating a secure form for file upload |
|
|
44 | (4) |
|
Validating and processing the form |
|
|
48 | (4) |
|
Showing the image with a user interface |
|
|
52 | (2) |
|
|
54 | (2) |
|
Deleting the image from the database and server |
|
|
56 | (2) |
|
|
58 | (1) |
|
Chapter 4 Building a Personal Blog |
|
|
59 | (14) |
|
Creating and migrating the posts database |
|
|
59 | (2) |
|
|
61 | (1) |
|
Creating and migrating the authors database |
|
|
62 | (3) |
|
Creating a members-only area |
|
|
65 | (3) |
|
|
68 | (2) |
|
Assigning blog posts to users |
|
|
69 | (1) |
|
|
70 | (2) |
|
|
72 | (1) |
|
|
72 | (1) |
|
Chapter 5 Building a News Aggregation Website |
|
|
73 | (16) |
|
Creating the database and migrating the feeds table |
|
|
73 | (2) |
|
|
75 | (1) |
|
|
75 | (3) |
|
Validating and processing the form |
|
|
78 | (2) |
|
Extending the core classes |
|
|
80 | (1) |
|
Reading and parsing an external feed |
|
|
81 | (6) |
|
|
87 | (2) |
|
Chapter 6 Creating a Photo Gallery System |
|
|
89 | (26) |
|
Creating a table and migrating albums |
|
|
89 | (3) |
|
|
91 | (1) |
|
Creating the images database with the migrating class |
|
|
92 | (1) |
|
|
93 | (1) |
|
|
94 | (9) |
|
Adding a template for creating albums |
|
|
98 | (5) |
|
Creating a photo upload form |
|
|
103 | (6) |
|
|
106 | (2) |
|
Assigning a photo to an album |
|
|
108 | (1) |
|
Moving photos between albums |
|
|
109 | (5) |
|
|
113 | (1) |
|
|
114 | (1) |
|
Chapter 7 Creating a Newsletter System |
|
|
115 | (14) |
|
Creating a database and migrating the subscribers table |
|
|
115 | (2) |
|
Creating a subscribers model |
|
|
117 | (1) |
|
Creating our subscription form |
|
|
117 | (3) |
|
Validating and processing the form |
|
|
120 | (2) |
|
Creating a queue system for basic e-mail sending |
|
|
122 | (3) |
|
Using the Email class to process e-mails inside the queue |
|
|
125 | (1) |
|
|
126 | (1) |
|
Sending e-mails with the queue directly |
|
|
127 | (1) |
|
|
127 | (2) |
|
Chapter 8 Building a Q&A Web Application |
|
|
129 | (58) |
|
Removing the public segment from Laravel 4 |
|
|
130 | (1) |
|
Installing Sentry 2 and an authentication library and setting access rights |
|
|
131 | (2) |
|
|
133 | (2) |
|
Creating our registration and login forms |
|
|
135 | (13) |
|
Validating and processing the form |
|
|
141 | (4) |
|
Processing the login and logout requests |
|
|
145 | (3) |
|
Creating our questions table and model |
|
|
148 | (2) |
|
Creating our tags table with a pivot table |
|
|
150 | (3) |
|
Creating and processing our question form |
|
|
153 | (7) |
|
Creating our questions form |
|
|
153 | (2) |
|
Processing our questions form |
|
|
155 | (5) |
|
Creating our questions list page |
|
|
160 | (6) |
|
Adding upvote and downvote functionality |
|
|
164 | (2) |
|
Creating our questions page |
|
|
166 | (6) |
|
Creating our answers table and resources |
|
|
172 | (12) |
|
|
174 | (6) |
|
|
180 | (4) |
|
Searching questions by the tags |
|
|
184 | (2) |
|
|
186 | (1) |
|
Chapter 9 Building a RESTful API -- The Movies and Actors Databases |
|
|
187 | (22) |
|
Creating and migrating the users database |
|
|
188 | (3) |
|
|
190 | (1) |
|
Creating and migrating the movies database |
|
|
191 | (1) |
|
|
191 | (2) |
|
|
192 | (1) |
|
Creating and migrating the actors database |
|
|
193 | (1) |
|
|
193 | (1) |
|
Assigning actors to movies |
|
|
194 | (1) |
|
Understanding the authentication mechanism |
|
|
195 | (1) |
|
|
196 | (12) |
|
Getting movie/actor information from the API |
|
|
197 | (3) |
|
Sending new movies/actors to the Api's database |
|
|
200 | (2) |
|
Deleting movies/actors from the API |
|
|
202 | (6) |
|
|
208 | (1) |
|
Chapter 10 Building an E-Commerce Website |
|
|
209 | (30) |
|
Building an authorization system |
|
|
209 | (1) |
|
Creating and migrating the members' database |
|
|
210 | (4) |
|
Creating and migrating the authors' database |
|
|
214 | (2) |
|
Adding authors to the database |
|
|
215 | (1) |
|
Creating and migrating the books database |
|
|
216 | (2) |
|
Adding books to the database |
|
|
217 | (1) |
|
Creating and migrating the carts database |
|
|
218 | (1) |
|
Creating and migrating the orders database |
|
|
219 | (2) |
|
|
221 | (11) |
|
Creating a template file to list books |
|
|
225 | (7) |
|
|
232 | (6) |
|
|
238 | (1) |
Index |
|
239 | |