Xem mẫu

Laravel 5 Cookbook
Enhance Your Amazing Applications
Nathan Wu
© 2015 - 2016 Nathan Wu

Contents
Book Information

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Book Description . . . . . . . . . . . . . . .
Requirements . . . . . . . . . . . . . . .
What You Will Get . . . . . . . . . . . . .
Book Structure . . . . . . . . . . . . . . .
Feedback . . . . . . . . . . . . . . . . . .
Translation . . . . . . . . . . . . . . . . .
Book Status, Changelog and Contributors

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

1

.
.
.
.
.
.
.

2
2
2
3
4
4
4

Changelog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Current Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5
5

Laravel 5 Cookbook

6

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Chapter 1: Back End Recipes . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Project Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
List Of Recipes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Recipe 1 - Introducing CLI (Command Line Interface) . . . . . . . . . . . . .
Recipe 2 - All About Git . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Recipe 3 - Build A Laravel Starter App . . . . . . . . . . . . . . . . . . . . .
Recipe 4 - Create A User Authentication System with Facebook and Socialite
Recipe 5 - Create A User Authentication System Using Laravel Auth Scaffold
Recipe 6 - Image Upload In Laravel . . . . . . . . . . . . . . . . . . . . . . .
Recipe 7 - Seeding Your App Using Faker . . . . . . . . . . . . . . . . . . .
Recipe 8 - Pagination . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Recipe 9 - Testing Your App . . . . . . . . . . . . . . . . . . . . . . . . . . .
Recipe 10 - Writing APIs with Laravel . . . . . . . . . . . . . . . . . . . . .

.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.

7
7
7
7
8
10
19
31
42
50
61
67
71
87

Chapter 2: Front End Recipes
Introduction . . . . . . . .
List Of Recipes . . . . . . .
Recipe 201 - Notifications .

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

108
108
108
108

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

CONTENTS

Recipe 202 - Integrating Buttons With Built-in Loading Indicators
Recipe 203 - Create A Registration Page Using AJAX and jQuery
Recipe 204 - Create A Login Page Using AJAX And jQuery . . . .
Recipe 205 - Upload Files Using AJAX And jQuery . . . . . . . .
Recipe 206 - Cropping Images Using jQuery . . . . . . . . . . . .

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

116
123
139
148
167

Chapter 3: Deployment Recipes . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
List Of Recipes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Recipe 301 - Deploying your applications using DigitalOcean (PHP 7 and Nginx)
Recipe 302 - Deploying your applications using Heroku . . . . . . . . . . . . . .
Recipe 303 - Deploying your applications blazingly fast using GIT . . . . . . . .

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

185
185
185
185
200
208

Book Information

1

nguon tai.lieu . vn