Skip to content

Commit 609e5b8

Browse files
author
徐志勇
committed
Merge remote-tracking branch 'laravel/master'
# Conflicts: # .gitattributes # app/Http/Controllers/Auth/RegisterController.php # package.json # public/css/app.css
2 parents 5e37693 + 098b8a4 commit 609e5b8

File tree

28 files changed

+167
-77
lines changed

28 files changed

+167
-77
lines changed

.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
APP_NAME=Laravel
12
APP_ENV=local
23
APP_KEY=
34
APP_DEBUG=true
@@ -23,7 +24,7 @@ REDIS_PASSWORD=null
2324
REDIS_PORT=6379
2425

2526
MAIL_DRIVER=smtp
26-
MAIL_HOST=mailtrap.io
27+
MAIL_HOST=smtp.mailtrap.io
2728
MAIL_PORT=2525
2829
MAIL_USERNAME=null
2930
MAIL_PASSWORD=null

.gitattributes

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
* text=auto
22
*.css linguist-vendored
3-
*.scss linguist-vendored
3+
*.scss linguist-vendored
4+
*.js linguist-vendored
5+
CHANGELOG.md export-ignore

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
/node_modules
2-
/public/storage
32
/public/hot
3+
/public/storage
44
/storage/*.key
55
/vendor
66
/.idea
7+
/.vagrant
78
Homestead.json
89
Homestead.yaml
10+
npm-debug.log
11+
yarn-error.log
912
.env
1013
.idea
1114
_ide_helper.php

CHANGELOG.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Release Notes
2+
3+
## v5.4.23 (2017-05-11)
4+
5+
### Added
6+
- Added SQL Server connection ([#4253](https://github.com/laravel/laravel/pull/4253), [#4254](https://github.com/laravel/laravel/pull/4254))
7+
8+
### Changed
9+
- Switch to using meta
10+
- Use CSRF token from `meta` tag, instead of `window.Laravel` object ([#4260](https://github.com/laravel/laravel/pull/4260))
11+
- Log console error if CSRF token cannot be found ([1155245](https://github.com/laravel/laravel/commit/1155245a596113dc2cd0e9083603fa11df2eacd9))
12+
13+
### Fixed
14+
- Added missing `ipv4` and `ipv6` validation messages ([#4261](https://github.com/laravel/laravel/pull/4261))
15+
16+
17+
## v5.4.21 (2017-04-28)
18+
19+
### Added
20+
- Added `FILESYSTEM_DRIVER` and `FILESYSTEM_CLOUD` environment variables ([#4236](https://github.com/laravel/laravel/pull/4236))
21+
22+
### Changed
23+
- Use lowercase doctype ([#4241](https://github.com/laravel/laravel/pull/4241))
24+
25+
26+
## v5.4.19 (2017-04-20)
27+
28+
### Added
29+
- Added `optimize-autoloader` to `config` in `composer.json` ([#4189](https://github.com/laravel/laravel/pull/4189))
30+
- Added `.vagrant` directory to `.gitignore` ([#4191](https://github.com/laravel/laravel/pull/4191))
31+
- Added `npm run development` and `npm run prod` commands ([#4190](https://github.com/laravel/laravel/pull/4190), [#4193](https://github.com/laravel/laravel/pull/4193))
32+
- Added `APP_NAME` environment variable ([#4204](https://github.com/laravel/laravel/pull/4204))
33+
34+
### Changed
35+
- Changed Laravel Mix version to `0.*` ([#4188](https://github.com/laravel/laravel/pull/4188))
36+
- Add to axios defaults instead of overwriting them ([#4208](https://github.com/laravel/laravel/pull/4208))
37+
- Added `string` validation rule to `RegisterController` ([#4212](https://github.com/laravel/laravel/pull/4212))
38+
- Moved Vue inclusion from `bootstrap.js` to `app.js` ([17ec5c5](https://github.com/laravel/laravel/commit/17ec5c51d60bb05985f287f09041c56fcd41d9ce))
39+
- Only load libraries if present ([d905b2e](https://github.com/laravel/laravel/commit/d905b2e7bede2967d37ed7b260cd9d526bb9cabd))
40+
- Ignore the NPM debug log ([#4232](https://github.com/laravel/laravel/pull/4232))
41+
- Use fluent middleware definition in `LoginController` ([#4229](https://github.com/laravel/laravel/pull/4229))
42+
43+
44+
## v5.4.16 (2017-03-17)
45+
46+
### Added
47+
- Added `unix_socket` to `mysql` in `config/database.php` ()[#4179](https://github.com/laravel/laravel/pull/4179))
48+
- Added Pusher example code to `bootstrap.js` ([31c2623](https://github.com/laravel/laravel/commit/31c262301899b6cd1a4ce2631ad0e313b444b131))
49+
50+
### Changed
51+
- Use `smtp.mailtrap.io` as default `MAIL_HOST` ([#4182](https://github.com/laravel/laravel/pull/4182))
52+
- Use `resource_path()` in `config/view.php` ([#4165](https://github.com/laravel/laravel/pull/4165))
53+
- Use `cross-env` binary ([#4167](https://github.com/laravel/laravel/pull/4167))
54+
55+
### Removed
56+
- Remove index from password reset `token` column ([#4180](https://github.com/laravel/laravel/pull/4180))

app/Http/Controllers/Auth/LoginController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ class LoginController extends Controller
3434
*/
3535
public function __construct()
3636
{
37-
$this->middleware('guest', ['except' => 'logout']);
37+
$this->middleware('guest')->except('logout');
3838
}
3939
}

app/Http/Controllers/Auth/RegisterController.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,17 @@ public function __construct()
4949
protected function validator(array $data)
5050
{
5151
return Validator::make($data, [
52-
'name' => 'required|max:255',
53-
'email' => 'required|email|max:255|unique:users',
54-
'password' => 'required|min:6|confirmed',
52+
'name' => 'required|string|max:255',
53+
'email' => 'required|string|email|max:255|unique:users',
54+
'password' => 'required|string|min:6|confirmed',
5555
]);
5656
}
5757

5858
/**
5959
* Create a new user instance after a valid registration.
6060
*
61-
* @param array $data
62-
*
63-
* @return User
61+
* @param array $data
62+
* @return \App\User
6463
*/
6564
protected function create(array $data)
6665
{

app/Providers/EventServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class EventServiceProvider extends ServiceProvider
1313
* @var array
1414
*/
1515
protected $listen = [
16-
'App\Events\SomeEvent' => [
16+
'App\Events\Event' => [
1717
'App\Listeners\EventListener',
1818
],
1919
];

artisan

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $status = $kernel->handle(
4040
| Shutdown The Application
4141
|--------------------------------------------------------------------------
4242
|
43-
| Once Artisan has finished running. We will fire off the shutdown events
43+
| Once Artisan has finished running, we will fire off the shutdown events
4444
| so that any final work may be done by the application before we shut
4545
| down the process. This is the last thing to happen to the request.
4646
|

bootstrap/autoload.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
|
1010
| Composer provides a convenient, automatically generated class loader
1111
| for our application. We just need to utilize it! We'll require it
12-
| into the script here so that we do not have to worry about the
13-
| loading of any our classes "manually". Feels great to relax.
12+
| into the script here so we do not have to manually load any of
13+
| our application's PHP classes. It just feels great to relax.
1414
|
1515
*/
1616

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
},
5959
"config": {
6060
"preferred-install": "dist",
61-
"sort-packages": true
61+
"sort-packages": true,
62+
"optimize-autoloader": true
6263
}
6364
}

0 commit comments

Comments
 (0)