Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Laravel Application Development Cookbook

You're reading from   Laravel Application Development Cookbook Since Laravel is so versatile, one of the best learning routes is a cookbook. We've included lots of recipes and guidance on building web application, both simple and complex. It's a pick & mix approach that works brilliantly.

Arrow left icon
Product type Paperback
Published in Oct 2013
Publisher Packt
ISBN-13 9781782162827
Length 272 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Terry Matula Terry Matula
Author Profile Icon Terry Matula
Terry Matula
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Laravel Application Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Setting Up and Installing Laravel FREE CHAPTER 2. Using Forms and Gathering Input 3. Authenticating Your Application 4. Storing and Using Data 5. Using Controllers and Routes for URLs and APIs 6. Displaying Your Views 7. Creating and Using Composer Packages 8. Using Ajax and jQuery 9. Using Security and Sessions Effectively 10. Testing and Debugging Your App 11. Deploying and Integrating Third-party Services into Your Application Index

Index

A

  • acceptance testing
    • about / Writing acceptance tests using Codeception
  • acceptance tests
    • writing, Codeception used / Getting ready, How it works...
  • access
    • restricting, to certain pages / Restricting access to certain pages, How to do it...
  • add() method / How it works...
  • advanced Autoloaders
    • creating, with namespaces / Creating advanced Autoloaders with namespaces and directories, How to do it..., How it works...
    • creating, with directories / Creating advanced Autoloaders with namespaces and directories, How to do it..., How it works...
  • advanced Blade usage
    • utilizing / Utilizing advanced Blade usage, How to do it..., How it works...
  • advanced Eloquent
    • using / Using advanced Eloquent and relationships, How to do it..., How it works...
  • advanced routing
    • using / How to do it…, How it works...
  • advanced validation
    • using, in forms / Using advanced validation in forms, How to do it..., How it works...
  • Ajax
    • used, for creating user / Creating and validating a user using Ajax, How to do it..., How it works...
    • used, for validating user / Creating and validating a user using Ajax, How to do it..., How it works...
  • Ajax Newsletter sign up box
    • creating / Making an Ajax newsletter sign-up box, How to do it…, How it works...
  • Ajax search function
    • creating / Creating an Ajax search function, How to do it..., How it works...
  • allShows() method / How it works...
  • Amazon S3
    • used, for storing cloud content / Storing and retrieving cloud content from Amazon S3, How to do it…, How it works...
    • used, for retrieving cloud content / Storing and retrieving cloud content from Amazon S3, How to do it…, How it works...
  • Apache
    • development environment, setting up / Setting up a virtual host and development environment in Apache, How to do it..., How it works...
    • virtual host, setting up / Setting up a virtual host and development environment in Apache, How to do it..., How it works...
  • app
    • setting up, Generators package used / Getting ready, How to do it…, How it works...
    • profiling / Getting ready, How to do it..., How it works...
    • debugging / Getting ready, How to do it..., How it works...
  • Ardent
    • URL / There's more...
  • Artisan
    • used, for running queue / Creating a queue and using Artisan to run it, How to do it..., How it works...
  • artisan command
    • about / How to do it..., How it works...
  • assets
    • adding / Adding assets, How to do it..., How it works...
  • attributes()
    • used, for modifying table columns names / Using attributes to change table column names, How to do it..., How it works...
  • Auth**attempt() method / There's more...
  • Auth class / Introduction
  • authentication system
    • creating / Creating an authentication system, How to do it..., How it works...
  • Auth library
    • configuring / Getting ready, How to do it..., How it works...
    • setting up / Getting ready, How to do it..., How it works...
  • auth_admin filter / How it works...
  • Autocomplete library
    • about / Creating an autocomplete text input
  • autocomplete text input
    • creating / Creating an autocomplete text input, How to do it..., How it works...
  • Autoloader
    • class name, mapping to file / Using Autoloader to map a class name to its file, How it works...
  • automatic validation
    • using, in models / Using automatic validation in models, How to do it..., How it works...

B

  • BaseController.php file / How it works...
  • basic controller
    • creating / How to do it..., How it works...
  • basic cookies
    • using / Using basic sessions and cookies, How to do it…, How it works...
  • basic sessions
    • using / Using basic sessions and cookies, How to do it…, How it works...
  • Blade
    • used, for creating views / Creating a view using Blade, How to do it..., How it works...
  • Bootstrap CSS framework
    • using, with Laravel / Integrating with Bootstrap, How it works...
  • built-in Form class
    • used, for creating form / How to do it..., How it works...

C

  • CAPTCHA style spam catcher
    • creating / Making a CAPTCHA-style spam catcher, How to do it..., How it works...
  • class name
    • mapping, to file / Using Autoloader to map a class name to its file, How it works...
  • clean URLs
    • creating / Creating "clean" URLs, How it works...
  • closure
    • used, for creating controller / Getting ready
  • cloud content
    • storing, Amazon S3 used / Storing and retrieving cloud content from Amazon S3, How to do it…, How it works...
    • retrieving, Amazon S3 used / Storing and retrieving cloud content from Amazon S3, How to do it…, How it works...
  • Codeception
    • used, for writing Codeception / Getting ready, How it works...
    • about / There's more...
    • URL / There's more...
  • Composer
    • non-Packagist package, adding to / Adding a non-Packagist package to Composer, How it works...
    • about / Introduction
  • composer.json file / How to do it..., How it works...
  • Composer package
    • creating, in Laravel / Creating a Composer package in Laravel, How to do it…, How it works...
    • adding, to Packagist / Adding your Composer package to Packagist, How it works...
  • configuration, Laravel / Configuring Laravel, How it works...
  • content
    • localizing / Creating localization of content, How to do it..., How it works...
  • Content Delivery Network (CDN) / How it works...
  • controller
    • setting up, for returning data / Setting up a controller to return JSON data, How it works...
  • controllers
    • used, for testing controllers / Using Mockery to test controllers, How to do it..., How it works...
  • CRUD system
    • creating / Creating a CRUD system, How to do it..., How it works...
  • CSRF
    • about / Using CSRF tokens and filters in forms
  • CSRF tokens
    • using, in forms / Getting ready, How it works...
  • CSV
    • importing, Eloquent used / Getting ready, How to do it..., How it works...
  • custom artisan command
    • creating / Creating a custom artisan command, How it works...
  • custom error message
    • creating / Creating a custom error message, How to do it..., How it works...
  • custom routing
    • setting / Doing a GeoIP lookup and setting custom routing, How to do it..., How it works...

D

  • data
    • passing, into views / How to do it…, How it works...
    • obtaining, from another page / Getting data from another page, How to do it..., How it works...
    • filtering, based on checkbox selection / Filtering data based on checkbox selection, How to do it..., How it works...
    • encrypting / How to do it..., How it works...
    • decrypting / How to do it..., How it works...
  • database
    • accessing, raw SQL used / Querying using raw SQL statements, How to do it..., How it works...
    • accessing, Fluent query builder used / How to do it...
  • database relationships
    • using / Using advanced Eloquent and relationships, How to do it..., How it works...
  • data source
    • RSS, using as / Using RSS as a data source, How it works...
  • data tables
    • creating, schemas used / How to do it..., How it works...
    • creating, migrations used / How to do it..., How it works...
  • Datatables
    • about / There's more...
    • URL, for info / There's more...
  • dd() helper function / How it works...
  • deleteRecord() method / How it works...
  • DELETE request / How it works...
  • development environment
    • setting up, in Apache / Setting up a virtual host and development environment in Apache, How to do it..., How it works...
  • Digital Ocean
    • URL / There's more...
  • directories
    • advanced Autoloaders, creating with / Creating advanced Autoloaders with namespaces and directories, How to do it..., How it works...

E

  • e-commerce
    • about / Building a shopping cart
  • e-commerce sites
    • about / Using the Stripe payment gateway with Laravel
  • e-mail
    • sending / Sending an e-mail using Laravel and jQuery, How to do it..., How it works...
  • e-mail addresses
    • gathering / Gathering e-mail addresses and using them with a third-party e-mail service, How to do it...
    • using, with third party e-mail service / Gathering e-mail addresses and using them with a third-party e-mail service, How to do it..., How it works...
  • Eloquent
    • used, for importing CSV / Getting ready, How to do it..., How it works...
  • Eloquent ORM
    • used, for querying / Querying using Eloquent ORM, How to do it..., How it works...
    / There's more...
  • Engine Yard
    • URL / There's more...

F

  • Facebook
    • using, for logins / Logging in using Facebook credentials, How to do it..., How it works...
  • file
    • class name, mapping to / Using Autoloader to map a class name to its file, How it works...
  • file upload
    • validating / Getting ready, How it works...
  • file uploader
    • creating / Getting ready, How it works...
  • filter
    • using, on route / Using a filter on the route, How it works...
  • filters
    • about / How it works...
    • using, in forms / Getting ready, How it works...
  • fire() method / How it works..., How it works...
  • flashOnly() method / How it works...
  • Fluent query builder
    • used, for accessing database / How to do it...
  • forget() method / How it works...
  • form
    • creating, built-in Form class used / How to do it..., How it works...
    • honey pot, adding to / Adding a honey pot to a form, Getting ready, How to do it..., How it works...
  • Form**token() function / How it works...
  • form input
    • gathering / Gathering form input to display on another page, How it works...
  • forms
    • CSRF tokens, using / Getting ready, How to do it...
    • filters, using / Getting ready, How to do it...
    • advanced validation, using / Using advanced validation in forms, How to do it..., How it works...

G

  • Generators
    • about / Using the Generators package to set up an app
  • Generators package
    • used, for setting up app / Getting ready, How to do it…, How it works...
  • GeoIP Lookup
    • performing / Doing a GeoIP lookup and setting custom routing, How to do it..., How it works...
  • getIndex() method / How it works...
  • getRecord() method / How it works...
  • GET request / How it works...
  • getRreate() method / How it works...
  • getUsernameAttribute() method / How it works...
  • git submodule
    • Laravel, installing as / Installing Laravel as a git submodule, How to do it..., How it works...

H

  • has() method / How it works...
  • Hash
    • about / Hashing passwords and other data
  • Hash**check() function / How it works...
  • Heroku
    • URL / There's more...
  • hget() function / How it works...
  • honey pot
    • adding, to form / Adding a honey pot to a form, Getting ready, How to do it..., How it works...
  • honey pot technique
    • about / Adding a honey pot to a form
  • HybridAuth package
    • OAuth, setting up with / Setting up OAuth with the HybridAuth package, How it works...

I

  • IDEs
    • setting up, for auto-completing Laravel's namespaces / Setting up your IDE to autocomplete Laravel's namespaces, How to do it..., How it works...
  • image
    • uploading, Redactor used / Getting ready, How to do it..., How it works...
    • cropping, Jcrop used / Getting ready, How to do it..., How it works...
  • installation, Laravel
    • as git submodule / Installing Laravel as a git submodule, How to do it..., How it works...
  • installation, packages / Getting ready, How to do it..., How it works...
  • IronMQ
    • about / Getting ready

J

  • Jcrop
    • about / Cropping an image with Jcrop
    • used, for cropping image / Getting ready, How to do it..., How it works...
  • jCrop
    • about / Introduction

L

  • Laravel
    • installing, as git submodule / Installing Laravel as a git submodule, How to do it..., How it works...
    • configuring / Configuring Laravel, How it works...
    • using, with Sublime Text 2 / How to do it..., There's more...
    • about / Introduction, Introduction, Introduction
    • non-Eloquent ORM, using / Using a non-Eloquent ORM in Laravel, How to do it..., How it works...
    • menus, creating / Getting ready, How to do it..., How it works...
    • Bootstrap CSS framework, integrating with / Integrating with Bootstrap, How it works...
    • Composer package, creating in / Creating a Composer package in Laravel, How to do it…, How it works...
    • Stripe payment gateway, using with / Getting ready, How to do it..., How it works...
  • Laravel app
    • deploying, to Pagoda Box / Getting ready, How to do it..., How it works...
  • Laravel application
    • Twig templates, incorporating into / How to do it…, How it works...
  • LinkedIn
    • using, for logins / Logging in using LinkedIn, How to do it...
  • listSubscribe() method / How it works...
  • localization / How it works...
    • creating, of content / Creating localization of content, How to do it..., How it works...
  • logins
    • OpenID, using for / Using OpenID for logins, How it works...
    • Facebook, using for / Logging in using Facebook credentials, How to do it..., How it works...
    • Twitter, using for / Logging in using Twitter credentials, How to do it..., How it works...
    • LinkedIn, using for / Logging in using LinkedIn, How to do it...

M

  • Mail**queue() command / There's more...
  • MailChimp API / Getting ready
  • Mailchimp service / Gathering e-mail addresses and using them with a third-party e-mail service
  • menus
    • about / Creating menus in Laravel
    • creating, in Laravel / Getting ready, How to do it..., How it works...
  • migrations
    • used, for creating data tables / How to do it..., How it works...
  • Mockery
    • used, for testing controllers / Using Mockery to test controllers, How to do it..., How it works...
  • Model-View-Controller (MVC) patterns / Creating a basic controller
  • models
    • automatic validation, using in / Using automatic validation in models, How to do it..., How it works...

N

  • named routes
    • using / Using named routes, How it works...
  • named views
    • using / Getting ready, How it works...
  • namespaces
    • advanced Autoloaders, creating with / Creating advanced Autoloaders with namespaces and directories, How to do it..., How it works...
  • nest() method / How it works...
  • nested views
    • view, loading into / Loading a view into another view/nested views, How to do it..., How it works...
    • about / Loading a view into another view/nested views
  • non-Eloquent ORM
    • using, in Laravel / Using a non-Eloquent ORM in Laravel, How to do it..., How it works...
  • non-Packagist package
    • adding, to Composer / Adding a non-Packagist package to Composer, How it works...

O

  • OAuth
    • setting up, with HybridAuth package / Setting up OAuth with the HybridAuth package, How it works...
  • OpenID
    • using, for logins / Using OpenID for logins, How it works...
    • URL, for info / There's more...
  • orWhere() function / How it works...

P

  • packages
    • about / Downloading and installing packages
    • installing / Getting ready, How to do it..., How it works...
    • downloading / Getting ready
  • Packagist
    • Composer package, adding to / Adding your Composer package to Packagist, How it works...
    • URL / Adding your Composer package to Packagist
  • pages
    • access, restricting to / Restricting access to certain pages, How to do it...
  • Pagoda Box
    • about / Deploying a Laravel app to Pagoda Box
    • Laravel app, deploying to / Getting ready, How to do it..., How it works...
  • PHPUnit
    • setting up / Setting up and configuring PHPUnit, How to do it...
    • configuring / Setting up and configuring PHPUnit, How to do it...
  • postIndex() method / How it works...
  • POST method / How it works...
  • postRegister() method / How it works...
  • POST request / How it works...
  • postSearch() method / How it works...
  • putObject() method / How it works...
  • putRecord() method / How it works...
  • PUT request / How it works...

Q

  • queue
    • creating / Creating a queue and using Artisan to run it, How to do it..., How it works...
    • running, Artisan used / Creating a queue and using Artisan to run it, How to do it..., How it works...
  • Queue**push() method / How it works...
  • Quickstart package / How it works...

R

  • raw SQL
    • used, for accessing database / Querying using raw SQL statements, How to do it..., How it works...
  • Redactor
    • about / Introduction, Uploading an image using Redactor
    • used, for uploading image / Getting ready, How to do it..., How it works...
  • RedBean
    • about / How it works...
  • RedBeans
    • URL / There's more...
  • Redis
    • about / Using Redis to save sessions
    • URL / Getting ready
    • used, for saving sessions / How to do it..., How it works...
  • Request**ajax() method / How it works...
  • Response**json() method / How it works...
  • RESTful API
    • building, with routes / Building a RESTful API with routes, How to do it..., How it works...
  • RESTful controller
    • creating / Creating a RESTful controller, How it works...
  • route
    • creating, closure used / Getting ready
    • filter, using on / Using a filter on the route, How it works...
    • subdomain, using in / Using a subdomain in your route, How to do it..., How it works...
  • Route**any() method / How it works...
  • Route**controller() / How it works...
  • route groups
    • using / Getting ready, How it works...
  • routes
    • used, for building RESTful API / Building a RESTful API with routes, How to do it..., How it works...
  • routes.php file / Introduction
  • RSS
    • using, as data source / Using RSS as a data source, How it works...

S

  • sadd() function / How it works...
  • schemas
    • used, for creating data tables / How to do it..., How it works...
  • scripts() method / How it works...
  • secure API server
    • creating / How to do it..., How it works...
  • security
    • about / Introduction
  • sessions
    • saving, Reddis used / How to do it..., How it works...
  • set() function / How it works...
  • setupLayout() method / How it works...
  • shopping cart
    • building / How to do it..., How it works...
  • sortable table
    • creating / How to do it..., How it works...
  • Stripe
    • URL / Getting ready
    • URL, for documentation / There's more...
  • Stripe payment gateway
    • using, with Laravel / Getting ready, How to do it..., How it works...
  • styles() method / How it works...
  • subdomain
    • using, in route / Using a subdomain in your route, How to do it..., How it works...
  • Sublime Text 2
    • about / Getting ready
    • URL, for downloading / Getting ready
    • Laravel, using with / How to do it..., There's more...

T

  • table columns names
    • modifying, attributes() used / Using attributes to change table column names, How to do it..., How it works...
  • test case
    • writing / Getting ready, How it works...
    • running / Getting ready, How it works...
  • Twig
    • about / Using TWIG templates
  • TwigBranch package / How it works...
  • Twig templates
    • incorporating, into Laravel application / How to do it…, How it works...
  • Twitter
    • using, for logins / Logging in using Twitter credentials, How to do it..., How it works...

U

  • uniqid() function / How it works...
  • unit tests
    • about / Introduction
  • user
    • validating, Ajax used / Creating and validating a user using Ajax, How to do it..., How it works...
    • creating, Ajax used / Creating and validating a user using Ajax, How to do it..., How it works...
  • user info
    • retrieving, after user login / Retrieving and updating user info after logging in, How to do it..., How it works...
    • updating, after user login / Retrieving and updating user info after logging in, How to do it..., How it works...
  • user input
    • validating / Getting ready, How it works...
  • user password
    • hashing / Hashing passwords and other data, How to do it..., How it works...

V

  • Validator class
    • about / Validating user input
  • view
    • loading, into another view / Loading a view into another view/nested views, How to do it..., How it works...
    • loading, into nested views / Loading a view into another view/nested views, How to do it..., How it works...
  • View**make() function / How it works..., How it works...
  • view composers
    • using / Getting ready, How it works...
  • views
    • about / Introduction
    • creating / How to do it..., How it works...
    • using / How to do it..., How it works...
    • data, passing into / How to do it…, How it works...
    • creating, Blade used / Creating a view using Blade, How to do it..., How it works...
  • virtual host
    • setting up, in Apache / Setting up a virtual host and development environment in Apache, How to do it..., How it works...

W

  • where() function / How it works...
  • where() method / How it works...
  • with() method / How it works...
lock icon The rest of the chapter is locked
arrow left Previous Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image