- Author: -Arda Kılıçdağı, -Halil İbrahim Yılmaz
- Language: English
- Published: 2013
- Page: 260
- Format: pdf
and improved Laravel 4
CONTENTS
Chapter 1: Building a URL Shortener Website 7
Creating a database and migrating our URL shortener's table 7
Creating our form 11
Creating our Link model 13
Saving data to the database 15
Diving further into controller and processing the form 18
Getting individual URL from the database and redirecting 20
Chapter 2: Building a To-do List with Ajax 23
Creating and migrating our to-do list's database 23
Creating a todos model 25
Creating the template 26
Inserting data to the database with Ajax 30
Retrieving the list from the database 34
How to allow only Ajax requests 34
Wrapping up 36
Chapter 3: Building an Image Sharing Website 39
Creating a database and migrating the images table 39
Creating a photo model 41
Setting custom configuration values 42
Installing a third-party library 43
Creating a secure form for file upload 44
Validating and processing the form 48
Showing the image with a user interface 52
Listing images 54
Deleting the image from the database and server 56
Chapter 4: Building a Personal Blog 59
Creating and migrating the posts database 59
Creating a posts model 61
Creating and migrating the authors database 62
Creating a members-only area 65
Saving a blog post 68
Listing articles 70
Paginating the content 72
Chapter 5: Building a News Aggregation Website 73
Creating the database and migrating the feeds table 73
Creating a feeds model 75
Creating our form 75
Validating and processing the form 78
Extending the core classes 80
Reading and parsing an external feed 81
Chapter 6: Creating a Photo Gallery System 89
Creating a table and migrating albums 89
Creating the images database with the migrating class 92
Creating an Image model 93
Creating an album 94
Creating a photo upload form 103
Moving photos between albums 109
Chapter 7: Creating a Newsletter System 115
Creating a database and migrating the subscribers table 115
Creating a subscribers model 117
Creating our subscription form 117
Validating and processing the form 120
Creating a queue system for basic e-mail sending 122
Using the Email class to process e-mails inside the queue 125
Testing the system 126
Sending e-mails with the queue directly 127
Chapter 8: Building a Q&A Web Application 129
Removing the public segment from Laravel 4 130
Installing Sentry 2 and an authentication library
and setting access rights 131
Creating custom filters 133
Creating our registration and login forms 135
Creating our questions table and model 148
Creating our tags table with a pivot table 150
Creating and processing our question form 153
Creating our questions form 153
Creating our questions page 166
Creating our answers table and resources 172
Searching questions by the tags 184
Chapter 9: Building a RESTful API – The Movies and Actors Databases 187
Creating and migrating the users database 188
Creating and migrating the movies database 191
Creating a movie model 191
Creating and migrating the actors database 193
Creating an actor model 193
Assigning actors to movies 194
Understanding the authentication mechanism 195
Querying the API 196
Chapter 10: Building an E-Commerce Website
Building an authorization system 209
Creating and migrating the members' database 210
Creating and migrating the authors' database 214
Creating and migrating the books database 216
Creating and migrating the carts database 218
Creating and migrating the orders database 219
Listing books 221
Taking orders 232
Index 239
DOWNLOAD HERE
No comments:
Post a Comment