售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Laravel Application Development Cookbook
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...
Setting up a controller to return JSON data
Getting ready
How to do it...
How it works...
There's more...
Creating an Ajax search function
Getting ready
How to do it...
How it works...
Creating and validating a user using Ajax
Getting ready
How to do it...
How it works...
There's more...
Filtering data based on checkbox selection
Getting ready
How to do it...
How it works...
Making an Ajax newsletter sign-up box
Getting ready
How to do it…
How it works...
There's more...
See also
Sending an e-mail using Laravel and jQuery
Getting ready
How to do it...
How it works...
Creating a sortable table using jQuery and Laravel
Getting ready
How to do it...
How it works...
There's more...
9. Using Security and Sessions Effectively
Introduction
Encrypting and decrypting data
Getting ready
How to do it...
How it works...
Hashing passwords and other data
Getting ready
How to do it...
How it works...
There's more...
Using CSRF tokens and filters in forms
Getting ready
How to do it...
How it works...
There's more...
Using advanced validation in forms
Getting ready
How to do it...
How it works...
There's more...
Building a shopping cart
Getting ready
How to do it...
How it works...
There's more...
Using Redis to save sessions
Getting ready
How to do it...
How it works...
Using basic sessions and cookies
Getting ready
How to do it…
How it works...
There's more...
Creating a secure API server
Getting ready
How to do it...
How it works...
There's more...
10. Testing and Debugging Your App
Introduction
Setting up and configuring PHPUnit
Getting ready
How to do it...
How it works...
Writing and running a test case
Getting ready
How to do it...
How it works...
See also
Using Mockery to test controllers
Getting ready
How to do it...
How it works...
See also
Writing acceptance tests using Codeception
Getting ready
How to do it...
How it works...
There's more...
Debugging and profiling your app
Getting ready
How to do it...
How it works...
There's more...
11. Deploying and Integrating Third-party Services into Your Application
Introduction
Creating a queue and using Artisan to run it
Getting ready
How to do it...
How it works...
There's more...
Deploying a Laravel app to Pagoda Box
Getting ready
How to do it...
How it works...
There's more...
Using the Stripe payment gateway with Laravel
Getting ready
How to do it...
How it works...
There's more...
Doing a GeoIP lookup and setting custom routing
Getting ready
How to do it...
How it works...
Gathering e-mail addresses and using them with a third-party e-mail service
Getting ready
How to do it...
How it works...
There's more...
Storing and retrieving cloud content from Amazon S3
Getting ready
How to do it…
How it works...
There's more...
See also
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜