Laravel Application Development Blueprints
Learn to develop 10 fantastic applications with the new and improved Laravel 4
Arda Kılıçdağı
Halil İbrahim Yılmaz
Table of Contents
Preface 1
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
Validating the users' input 16
Returning the messages to the view 17
Diving further into controller and processing the form 18
Getting individual URL from the database and redirecting 20
Summary
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
Allowing the request using route filters 35
Allowing the request using the controller side 35
Wrapping up 36
Summary
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
Summary
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
Assigning blog posts to users 69
Listing articles 70
Paginating the content 72
Summary
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
Summary
Chapter 6: Creating a Photo Gallery System 89
Creating a table and migrating albums 89
Creating an Album model 91
Creating the images database with the migrating class 92
Creating an Image model 93
Creating an album 94
Adding a template for creating albums 98
Creating a photo upload form 103
Validating the photo 106
Assigning a photo to an album 108
Moving photos between albums 109
Creating an update form 113
Summary
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
Summary
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
Validating and processing the form 141
Processing the login and logout requests 145
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
Processing our questions form 155
Creating our questions list page 160
Adding upvote and downvote functionality 164
Creating our questions page 166
Creating our answers table and resources 172
Processing the answers 174
Choosing the best answer 180
Searching questions by the tags 184
Summary
Chapter 9: Building a RESTful API – The Movies and Actors Databases 187
Creating and migrating the users database 188
Adding sample users 190
Creating and migrating the movies database 191
Creating a movie model 191
Adding sample movies 192
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
Getting movie/actor information from the API 197
Sending new movies/actors to the API's database 200
Deleting movies/actors from the API 202
Summary
Chapter 10: Building an E-Commerce Website 209
Building an authorization system 209
Creating and migrating the members' database 210
Creating and migrating the authors' database 214
Adding authors to the database 215
Creating and migrating the books database 216
Adding books to the database 217
Creating and migrating the carts database 218
Creating and migrating the orders database 219
Listing books 221
Creating a template file to list books 225
Taking orders 232
Summary
Link Download :
Here
0 Response to "Laravel Application Development Blueprints"
Posting Komentar