Table of Contents Laravel Application Development Cookbook Credits About the Author About the Reviewers www.PacktPub.com Support files, eBooks, discount offers and more Why Subscribe? Free Access for Packt account holders Preface What this book covers What you need for this book Who this book is for Conventions Reader feedback Customer support Downloading the example code Errata Piracy Questions 1. Setting Up and Installing Laravel Introduction Installing Laravel as a git submodule Getting ready How to do it... How it works... There's more... Setting up a virtual host and development environment in Apache Getting ready How to do it... How it works... There's more... Creating "clean" URLs Getting ready How to do it... How it works... There's more... Configuring Laravel Getting ready How to do it... How it works... There's more... Using Laravel with Sublime Text 2 Getting ready How to do it... How it works... There's more... Setting up your IDE to autocomplete Laravel's namespaces Getting ready How to do it... How it works... There's more... Using Autoloader to map a class name to its file Getting ready How to do it... How it works... See also Creating advanced Autoloaders with namespaces and directories Getting ready How to do it... How it works... There's more... See also 2. Using Forms and Gathering Input Introduction Creating a simple form Getting ready How to do it... How it works... There's more... See also Gathering form input to display on another page Getting ready How to do it... How it works... See also Validating user input Getting ready How to do it... How it works... See also Creating a file uploader Getting ready How to do it... How it works... See also Validating a file upload Getting ready How to do it... How it works... There's more... See also Creating a custom error message Getting ready How to do it... How it works... There's more... See also Adding a honey pot to a form Getting ready How to do it... How it works... There's more... Uploading an image using Redactor Getting ready How to do it... How it works... There's more... Cropping an image with Jcrop Getting ready How to do it... How it works... There's more... Creating an autocomplete text input Getting ready How to do it... How it works... There's more... Making a CAPTCHA-style spam catcher Getting ready How to do it... How it works... 3. Authenticating Your Application Introduction Setting up and configuring the Auth library Getting ready How to do it... How it works... Creating an authentication system Getting ready How to do it... How it works... See also Retrieving and updating user info after logging in Getting ready How to do it... How it works... There's more... See also Restricting access to certain pages Getting ready How to do it... How it works... Setting up OAuth with the HybridAuth package Getting ready How to do it... How it works... Using OpenID for logins Getting ready How to do it... How it works... There's more... Logging in using Facebook credentials Getting ready How to do it... How it works... There's more... Logging in using Twitter credentials Getting ready How to do it... How it works... There's more... Logging in using LinkedIn Getting ready How to do it... How it works... 4. Storing and Using Data Introduction Creating data tables using migrations and schemas Getting ready How to do it... How it works... There's more… Querying using raw SQL statements Getting ready How to do it... How it works... See also Querying using Fluent Getting ready How to do it... How it works... There's more... See also Querying using Eloquent ORM Getting ready How to do it... How it works... There's more... See also Using automatic validation in models Getting ready How to do it... How it works... There's more... Using advanced Eloquent and relationships Getting ready How to do it... How it works... There's more... Creating a CRUD system Getting ready How to do it... How it works... There's more... Importing a CSV using Eloquent Getting ready How to do it... How it works... Using RSS as a data source Getting ready How to do it... How it works... Using attributes to change table column names Getting ready How to do it... How it works... Using a non-Eloquent ORM in Laravel Getting ready How to do it... How it works... There's more... 5. Using Controllers and Routes for URLs and APIs Introduction Creating a basic controller Getting ready How to do it... How it works... Creating a route using a closure Getting ready How to do it... How it works... Creating a RESTful controller Getting ready How to do it... How it works... Using advanced routing Getting ready How to do it… How it works... Using a filter on the route Getting ready How to do it... How it works... There's more... Using route groups Getting ready How to do it… How it works... Building a RESTful API with routes Getting ready How to do it... How it works... There's more... Using named routes Getting ready How to do it... How it works... Using a subdomain in your route Getting ready How to do it... How it works... There's more... 6. Displaying Your Views Introduction Creating and using a basic view Getting ready How to do it... How it works... Passing data into a view Getting ready How to do it… How it works... There's more... Loading a view into another view/nested views Getting ready How to do it... How it works... See also Adding assets Getting ready How to do it... How it works... See also Creating a view using Blade Getting ready How to do it... How it works... Using TWIG templates Getting ready How to do it… How it works... Utilizing advanced Blade usage Getting ready How to do it... How it works... Creating localization of content Getting ready How to do it... How it works... Creating menus in Laravel Getting ready How to do it... How it works... Integrating with Bootstrap Getting ready How to do it... How it works... See also Using named views and view composers Getting ready How to do it... How it works... See also 7. Creating and Using Composer Packages Introduction Downloading and installing packages Getting ready How to do it... How it works... Using the Generators package to set up an app Getting ready How to do it… How it works... Creating a Composer package in Laravel Getting ready How to do it… How it works... There's more... Adding your Composer package to Packagist Getting ready How to do it... How it works... See also Adding a non-Packagist package to Composer Getting ready How to do it... How it works... Creating a custom artisan command Getting ready How to do it... How it works... 8. Using Ajax and jQuery Introduction Getting data from another page Getting ready How to do it... How it works...
Description: