PacktLib: Laravel Application Development Blueprints

Laravel Application Development Blueprints

Credits

About the Authors

About the Reviewers

www.PacktPub.com

Preface

Building a URL Shortener Website

Creating a database and migrating our URL shortener's table

Creating our form

Creating our Link model

Saving data to the database

Diving further into controller and processing the form

Getting individual URL from the database and redirecting

Summary

Building a To-do List with Ajax

Creating and migrating our to-do list's database

Creating a todos model

Creating the template

Inserting data to the database with Ajax

Retrieving the list from the database

How to allow only Ajax requests

Wrapping up

Summary

Building an Image Sharing Website

Creating a database and migrating the images table

Creating a photo model

Setting custom configuration values

Installing a third-party library

Creating a secure form for file upload

Validating and processing the form

Showing the image with a user interface

Listing images

Deleting the image from the database and server

Summary

Building a Personal Blog

Creating and migrating the posts database

Creating a posts model

Creating and migrating the authors database

Creating a members-only area

Saving a blog post

Listing articles

Paginating the content

Summary

Building a News Aggregation Website

Creating the database and migrating the feeds table

Creating a feeds model

Creating our form

Validating and processing the form

Extending the core classes

Reading and parsing an external feed

Summary

Creating a Photo Gallery System

Creating a table and migrating albums

Creating the images database with the migrating class

Creating an Image model

Creating an album

Creating a photo upload form

Moving photos between albums

Summary

Creating a Newsletter System

Creating a database and migrating the subscribers table

Creating a subscribers model

Creating our subscription form

Validating and processing the form

Creating a queue system for basic e-mail sending

Using the Email class to process e-mails inside the queue

Testing the system

Sending e-mails with the queue directly

Summary

Building a Q&A Web Application

Removing the public segment from Laravel 4

Installing Sentry 2 and an authentication library and setting access rights

Creating custom filters

Creating our registration and login forms

Creating our questions table and model

Creating our tags table with a pivot table

Creating and processing our question form

Creating our questions list page

Creating our questions page

Creating our answers table and resources

Searching questions by the tags

Summary

Building a RESTful API – The Movies and Actors Databases

Creating and migrating the users database

Creating and migrating the movies database

Creating a movie model

Creating and migrating the actors database

Creating an actor model

Assigning actors to movies

Understanding the authentication mechanism

Querying the API

Summary

Building an E-Commerce Website

Building an authorization system

Creating and migrating the members' database

Creating and migrating the authors' database

Creating and migrating the books database

Creating and migrating the carts database

Creating and migrating the orders database

Listing books

Taking orders

Summary

Index