Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.3] Added support for PhpRedis #14850

Closed
wants to merge 249 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
249 commits
Select commit Hold shift + click to select a range
ef20f4b
Add relation not found exception
flugg Jul 24, 2016
1028ba3
Fix styling
flugg Jul 24, 2016
b67e606
Remove old suggested dependency from support (#14490)
GrahamCampbell Jul 26, 2016
6722e39
Fix a docblock (#14489)
lucasmichot Jul 26, 2016
6786748
remove the morphclass (#14477)
phroggyy Jul 26, 2016
44895e6
pass notifiable
taylorotwell Jul 27, 2016
33be832
break down multi lines into single lines on a single line call.
taylorotwell Jul 27, 2016
0d2bc55
fleunt set the notification level
taylorotwell Jul 27, 2016
c3169c9
fluent set the subject
taylorotwell Jul 27, 2016
a16dd5b
fix build order
taylorotwell Jul 27, 2016
1614783
allow arrays
taylorotwell Jul 27, 2016
a17f417
allow a few more methods
taylorotwell Jul 27, 2016
a41d646
totally simplify and refactor notifications
taylorotwell Jul 27, 2016
c9e28f3
Applied fixes from StyleCI
taylorotwell Jul 27, 2016
bb8dc89
tweak stub
taylorotwell Jul 27, 2016
01cf6b2
Fix #14506 (#14510)
danilcha Jul 28, 2016
f134d3d
[5.2] Update Str::plural() to use intval() (#14502)
SaeedPrez Jul 28, 2016
4444f54
Added resolveName to the job contract (#14513)
GrahamCampbell Jul 28, 2016
d2e55f0
[5.3] Introduce a timeout exception for the queue (#14519)
GrahamCampbell Jul 28, 2016
b35360c
Remove duplicate interface implementation (#14515)
mylxsw Jul 28, 2016
8226c85
single event for notification per notifiable
taylorotwell Jul 28, 2016
c6298db
Add where time support query
johnpaulmedina Jul 28, 2016
5af14a6
[5.3] Arr::where() - Simplifies and makes it faster (#14530)
KennedyTedesco Jul 29, 2016
0542a9a
Unit tests for Collection::slice (#14529)
Jul 29, 2016
0baed06
Fix pokemon plural form (#14525)
scrubmx Jul 29, 2016
7765182
just test on php
taylorotwell Jul 29, 2016
b6682c0
[5.3] URL Generator - Call array_filter directly (#14531)
KennedyTedesco Jul 29, 2016
d3242a1
Cron rules should be commutative (#14534)
Jul 29, 2016
4945be3
[5.3] Collection filter() - Make use of Arr::where() (#14533)
KennedyTedesco Jul 29, 2016
6a17a5e
format code
taylorotwell Jul 29, 2016
7da8c6c
Applied fixes from StyleCI
taylorotwell Jul 29, 2016
0757287
fix phpDocs (#14540)
mayoz Jul 29, 2016
0ad3f8a
Alias Mailer as MailerContract (#14539)
brayniverse Jul 29, 2016
352b3a9
order imports
taylorotwell Jul 29, 2016
7d60cbe
finish test
taylorotwell Jul 29, 2016
27f0880
Change exception message to actual model path
flugg Jul 30, 2016
20e2abf
Fix some docblocks.
lucasmichot Jul 30, 2016
3467068
Turn the collection into a base collection if map loses models
Jul 31, 2016
6ce6bf3
this is cleaner
Jul 31, 2016
35b5f51
accidentally a space
Jul 31, 2016
10bae53
fixing style issues
Jul 31, 2016
7d8fc24
removed unnecessary use
Jul 31, 2016
27f0d93
add toBase to support collection so change isnt breaking
Jul 31, 2016
9b17ae5
Ignore case in blade foreach compiler (#14581)
mpociot Aug 1, 2016
9b579af
Add missing return statement (#14580)
macku99 Aug 1, 2016
d6af018
[5.3] Update docblock - add missing parameter (#14576)
juukie Aug 1, 2016
0edd8f6
Cleanup model factory for mutiple models (#14571)
JosephSilber Aug 1, 2016
2645a89
[5.3] Removed all HHVM code (#14570)
GrahamCampbell Aug 1, 2016
b23d1e3
Fix empty api key authentication error. (#14568)
srmklive Aug 1, 2016
fc5786b
Update author email (#14561)
lucasmichot Aug 1, 2016
73a57ae
Adds unit test for whereTime on mysql (#14557)
Aug 1, 2016
96efc7e
[5.3] Request - Minor change and tests added to fingerprint() (#14551)
KennedyTedesco Aug 1, 2016
7c3b00d
inline temp
taylorotwell Aug 1, 2016
1c27d95
[5.3] Request - Dry's up a bit more (#14550)
KennedyTedesco Aug 1, 2016
669b6f6
[5.1] Fixed support for PHP 7.1 (#14549)
GrahamCampbell Aug 1, 2016
266698b
Add some missing methods to the Gate interface (#14546)
JosephSilber Aug 1, 2016
0257c75
remove legacy non-breaking code
Aug 1, 2016
3bc140c
Fixed race condition between DatabaseMigration and DatabaseTransactio…
henriklippke Aug 1, 2016
3dd6d3d
Add toggle() method to BelongsToMany relation
gregoriohc Aug 1, 2016
7d06941
good change in arguments for contains closure in 5.3
Aug 1, 2016
936a029
Add the opposite method of isDirty, the isClean
pespantelis Aug 1, 2016
e36400a
bcc mail issue (mailgun) (#10650)
enVolt Aug 1, 2016
59a0973
Alias Mailer
JeffreyWay Aug 1, 2016
168d4c4
working on pagination
taylorotwell Aug 1, 2016
775eb87
Fix typo on docblock
mul14 Aug 2, 2016
8434fa4
DateTime delay (#14600)
halaei Aug 2, 2016
79d8f7b
Add missed import (#14595)
butschster Aug 2, 2016
c47ee86
fix comment
taylorotwell Aug 2, 2016
513c804
tweaking format
taylorotwell Aug 2, 2016
162f474
Add seeRouteIs() to Illuminate\Foundation\Testing\Concerns\InteractsW…
simonhunt Aug 2, 2016
d91476c
allow array keys to request helper
taylorotwell Aug 2, 2016
05a944d
adjust type hint
taylorotwell Aug 2, 2016
0f0a3b3
Fix - Array to string conversion issue in validateIn() method
vigneshgurusamy Aug 3, 2016
5eab45b
Fix typo (#14609)
srmklive Aug 3, 2016
415badb
Tweak password reset.
taylorotwell Aug 3, 2016
dd8b326
Applied fixes from StyleCI
taylorotwell Aug 3, 2016
e5c3e21
add option for bc
taylorotwell Aug 3, 2016
b41939e
Added whereStrict to Collections (#14624)
themsaid Aug 4, 2016
722e40e
remove else from request helper (#14614)
adrianyg7 Aug 4, 2016
8c4cb7a
[5.3] Make toBase on the base collection actually be useful (#14612)
JosephSilber Aug 4, 2016
4bcfa82
Remove unused code. (#14610)
crynobone Aug 4, 2016
248f83e
refactor
taylorotwell Aug 4, 2016
ec2a7ce
remove comment
taylorotwell Aug 4, 2016
2bb2b63
spacing
taylorotwell Aug 4, 2016
04329fb
formatting and method extraction
taylorotwell Aug 4, 2016
04bb8d7
revert broken change to mailgun
taylorotwell Aug 4, 2016
15c4bb3
working on alignmnet
taylorotwell Aug 4, 2016
df3b774
sort notifications and add unread method
taylorotwell Aug 4, 2016
ee3ad94
remove old property
taylorotwell Aug 5, 2016
cb5e9aa
remove updateAny from stub
taylorotwell Aug 5, 2016
b466251
Allow to pass multiple arguments to Authorize.
Aug 5, 2016
e4dc612
Add visitRoute() to Illuminate\Foundation\Testing\Concerns\InteractsW…
simonhunt Aug 5, 2016
1666d8b
Update laravel urls with https (#14629)
vinkla Aug 5, 2016
6f6a720
[5.2] Allow collections to be created from objects that implement Tra…
timsweb Aug 5, 2016
9bf9319
Added makeHidden method
jbreuer95 Aug 5, 2016
a00e0fa
Add missing docblock
lucasmichot Aug 5, 2016
f8e622c
Tweak default setup of middleware and how authorization methods are c…
taylorotwell Aug 5, 2016
85779e0
Tweak how channels are handled.
taylorotwell Aug 5, 2016
b8eb3a1
get router in function
taylorotwell Aug 5, 2016
5c1d07d
Add database notification created event and integrate with broadcasting.
taylorotwell Aug 5, 2016
e4715ed
Fix a few things.
taylorotwell Aug 5, 2016
a0d89c0
separate driver for braodcasting
taylorotwell Aug 5, 2016
1020b31
fixes #14647 by correct digits validation (#14650)
themsaid Aug 5, 2016
edaed76
Fix invalid() and valid() methods. (issue #14646)
Aug 5, 2016
02c778c
Update Validator.php
Aug 6, 2016
46d5c70
Update Validator.php
Aug 6, 2016
65dd380
Fixing style
Aug 6, 2016
7a3efb1
use message object
taylorotwell Aug 6, 2016
4bd06ce
Applied fixes from StyleCI
taylorotwell Aug 6, 2016
c670681
Fix type hint
taylorotwell Aug 6, 2016
f35ea22
fix type hint
taylorotwell Aug 6, 2016
6f4d59d
[5.3] Fix notifications docblocks and remove useless imports (#14666)
lucasmichot Aug 6, 2016
cf8065c
support dot notation in Request::exists() to fix #14643 (#14660)
themsaid Aug 6, 2016
dec6941
[5.3] Fix undefined variable: request (#14659)
dluague Aug 6, 2016
7e9f3f4
Arrange imports by length
flugg Aug 6, 2016
c166080
Refactor away from call_user_func[_array]
ralphschindler Aug 6, 2016
713cd05
Style fixes
ralphschindler Aug 6, 2016
57e308a
Changes From Review:
ralphschindler Aug 6, 2016
34ad23e
Style fixes
ralphschindler Aug 6, 2016
3214b22
Use proper assertions (#14672)
lucasmichot Aug 7, 2016
7d9bdd6
formatting
taylorotwell Aug 7, 2016
e7489a2
Alias View as ViewContract (#14673)
lucasmichot Aug 7, 2016
0fafba9
Added a way to get the size of the queue (#14662)
GrahamCampbell Aug 7, 2016
43da826
formatting
taylorotwell Aug 7, 2016
5a5eba6
[5.3] Add uniqueStrict method (#14661)
mnabialek Aug 7, 2016
74d8e41
Applied fixes from StyleCI
taylorotwell Aug 7, 2016
7a42ba6
[5.3] Add containsStrict method (#14657)
mnabialek Aug 7, 2016
55a1a06
fix bugs in code
taylorotwell Aug 7, 2016
4cbf35d
Applied fixes from StyleCI
taylorotwell Aug 7, 2016
623a2a7
use collections
taylorotwell Aug 7, 2016
ba400ea
clean up exception handling
taylorotwell Aug 7, 2016
abc9dfe
Added testes for PR #14651
carloscarucce Aug 7, 2016
3199870
Apply patch from StyleCI
carloscarucce Aug 7, 2016
a1aeae9
[5.3] Include delayed and reserved in redis queue count (#14681)
GrahamCampbell Aug 7, 2016
6777f95
Revert "[5.3] Include delayed and reserved in redis queue count"
GrahamCampbell Aug 7, 2016
a85271a
Include delayed and reserved in redis queue count
GrahamCampbell Aug 7, 2016
882311e
Return new exception
JosephSilber Aug 8, 2016
d410063
refactoring notifications
taylorotwell Aug 8, 2016
c685b50
test and fix RedisQueue::size() by using zcard and eval
halaei Aug 8, 2016
a22ef56
Misspelling fixed 'gender'
carloscarucce Aug 8, 2016
d2f5c37
work on channel speific messages
taylorotwell Aug 8, 2016
13473f8
Applied fixes from StyleCI (#14693)
taylorotwell Aug 8, 2016
8955c08
tweak how broadcast is handled
taylorotwell Aug 8, 2016
cf92b46
add files
taylorotwell Aug 8, 2016
af0391e
Applied fixes from StyleCI (#14698)
taylorotwell Aug 8, 2016
8ef4730
cast to string
taylorotwell Aug 8, 2016
1b11ddc
send notification type
taylorotwell Aug 8, 2016
f6fbc00
working on nexmo notifications
taylorotwell Aug 8, 2016
2b67c42
convert to message on plain string
taylorotwell Aug 8, 2016
25e6e0c
change comment
taylorotwell Aug 8, 2016
f708e42
clean up type hint
taylorotwell Aug 8, 2016
5b2f861
custom slack object
taylorotwell Aug 9, 2016
e906351
[5.3] Change $loop->index to $loop->iteration (#14706)
JayBizzle Aug 9, 2016
e5bf0f4
Increase the default reds timeout (#14695)
GrahamCampbell Aug 9, 2016
d6b7408
Added missing notification dependency (#14694)
GrahamCampbell Aug 9, 2016
233b9d8
Added release notes for v5.2.42 (#14692)
tillkruss Aug 9, 2016
8a2ca60
Allow custom $attributes, default to web middleware (#14691)
mattmcdonald-uk Aug 9, 2016
c4cc67d
closes #14679 by fixing the route list command for single action cont…
themsaid Aug 9, 2016
1d5b82d
Support column aliases in chunkById
mzur Aug 9, 2016
3e1338b
Fixes undefined index "aggregate" when you try to use paginator with …
melloc01 Aug 9, 2016
8f95e85
Applied fixes from StyleCI (#14717)
taylorotwell Aug 9, 2016
593b339
tweak database channel
taylorotwell Aug 9, 2016
bb3d5b0
403 on private channels when nobody is logged in
taylorotwell Aug 9, 2016
d5025ce
working on broadcasting
taylorotwell Aug 9, 2016
dacf5d8
Fix typo (#14721)
JeffreyWay Aug 9, 2016
c3cb760
refactor broadcasting a bit
taylorotwell Aug 9, 2016
1b0567a
add files
taylorotwell Aug 9, 2016
3d5ad0c
add helper
taylorotwell Aug 9, 2016
1ba832d
Applied fixes from StyleCI (#14726)
taylorotwell Aug 9, 2016
104edbb
fix vis
taylorotwell Aug 9, 2016
5154ec4
fix typo
taylorotwell Aug 9, 2016
5014992
working on broadcasting
taylorotwell Aug 9, 2016
0050948
tweak so errors arent thrown if not broadcastable
taylorotwell Aug 9, 2016
4f3eede
Fix Request file() return type hint (#14725)
cnanney Aug 10, 2016
1093064
Command to create notifications table
mattmcdonald-uk Aug 9, 2016
4d49a39
Fix registering Closure commands.
taylorotwell Aug 10, 2016
28cec4a
force integer on inc / dec
taylorotwell Aug 10, 2016
31a1e5d
Applied fixes from StyleCI (#14738)
taylorotwell Aug 10, 2016
e18a305
Improved method description (#14736)
OskarD Aug 10, 2016
dd3ce6a
Collection mapToAssoc implementation.
aguimaraes Jul 22, 2016
ff9b9eb
Style requirements.
aguimaraes Jul 22, 2016
5872de7
Allow usage of the worker without pcntl
GrahamCampbell Aug 10, 2016
5b134a7
toAssoc should receive an associative array, not a pair.
aguimaraes Aug 10, 2016
2011064
add csrfToken to layout as JS variable
taylorotwell Aug 10, 2016
4a53e50
allow returning single channel
taylorotwell Aug 10, 2016
037540f
tweak event stub
taylorotwell Aug 10, 2016
3df5e71
tweak wording
taylorotwell Aug 10, 2016
2db6710
fixing some things with broadcasting
taylorotwell Aug 10, 2016
f859938
Rename broadcasting methods to something more sensible.
taylorotwell Aug 10, 2016
0bc01de
Added release notes for v5.2.43 (#14750)
tillkruss Aug 10, 2016
d4139f7
Expose yourself to your deepest fear; after that, fear has no power.
taylorotwell Aug 10, 2016
feae23d
fix contract
taylorotwell Aug 10, 2016
db1ec8b
fix Action reference (#14746)
hosmelq Aug 10, 2016
e9e9e1f
Mailables should respect ShouldQueue
JosephSilber Aug 11, 2016
0210c99
Add missing import at RedisBroadcaster
christosku Aug 11, 2016
994d6aa
Make Mailable@with more flexible (#14764)
JosephSilber Aug 11, 2016
2491517
remove should queue by default
taylorotwell Aug 11, 2016
e323b82
change message
taylorotwell Aug 11, 2016
fc3a81f
Fix typo for function_exists (#14766)
mnabialek Aug 11, 2016
ce769ea
properly handle serialization of mail queue models
taylorotwell Aug 11, 2016
8292df5
add files
taylorotwell Aug 11, 2016
b3b7024
Applied fixes from StyleCI (#14769)
taylorotwell Aug 11, 2016
95f5d5c
Added missing schema imports (#14771)
GrahamCampbell Aug 11, 2016
57b2f2c
[5.3] Refactor unique / uniqueStrict methods to use common code (#14767)
mnabialek Aug 12, 2016
d12ebbf
Extend ForRequest directly (#14744)
JosephSilber Aug 12, 2016
4073e79
Support listening on event interfaces
GrahamCampbell Aug 12, 2016
a623fd2
Fixed the aggregate method
GrahamCampbell Aug 12, 2016
12d1400
Be super careful with types
GrahamCampbell Aug 12, 2016
9babbe1
Create database notification collection with mark as read method.
martinbean Aug 12, 2016
14ad408
Bind numeric string with PDO::PARAM_STR (#14786)
takuto-h Aug 12, 2016
6214ed3
Deprecate quickRandom (#14780)
GrahamCampbell Aug 12, 2016
0be9ee8
[5.3] Turn on pretty printing of JSON when test is unable to find fra…
danjordan Aug 12, 2016
275048d
formatting
taylorotwell Aug 12, 2016
1989a1e
Move the fire of the NotificationSent event after the actual sending …
gregoriohc Aug 12, 2016
bd57f57
clean
taylorotwell Aug 12, 2016
bfca5c9
[5.3] Fail-safing Queue's Predis/Redis Unit Tests & Move to phpunit.x…
ralphschindler Aug 12, 2016
23231a5
[5.2] firstOrCreate will not create new db rows when a model has a mu…
miscbits Aug 12, 2016
e9ea39d
method name change
taylorotwell Aug 12, 2016
fbfc83a
mapToAssoc
taylorotwell Aug 12, 2016
f7ee7ab
Add support for checking if an array has multiple keys (#14789)
ntzm Aug 12, 2016
f8650b8
Adjusting notification template for non-style browsers
kuczmaja Aug 12, 2016
7962c06
fix queue listen
taylorotwell Aug 12, 2016
299d0d4
inline styles
taylorotwell Aug 12, 2016
711ce0a
Avoid call_user_func_array in __call functions (#14791)
GrahamCampbell Aug 12, 2016
6783fb9
Make mapToAssoc return a collection (#14795)
JosephSilber Aug 12, 2016
b2c324a
Remove import of a class which doesn't exist. (#14807)
eriktisme Aug 13, 2016
80027fb
Use KEYS only for redis keys and ARGV for other arguments (#14802)
halaei Aug 13, 2016
2d2bf92
[5.3] Add missing methods (#14800)
morloderex Aug 13, 2016
efe8426
working on methods
taylorotwell Aug 13, 2016
bc50722
Fix export-ignore for phpunit.xml
vinkla Aug 13, 2016
209ab57
Update author email
vinkla Aug 13, 2016
ef0d3f2
Protect against empty paths in the view:clear command (#14812)
GrahamCampbell Aug 14, 2016
29084a8
Load NotificationServiceProvider eagerly because boot needs to be cal…
themsaid Aug 15, 2016
a43a9d1
Fix getRouteForMethods docblock (#14823)
lucasmichot Aug 15, 2016
e0ed7ec
Fix ResourceRegistrar docblock (#14822)
lucasmichot Aug 15, 2016
e871b29
Remove nitpick (#14821)
lucasmichot Aug 15, 2016
3f7d05b
Sort require (#14820)
lucasmichot Aug 15, 2016
43335bc
add sync without detaching method
taylorotwell Aug 15, 2016
9ee4098
[5.2] Add withoutTrashed method to SoftDeletingScope (#14805)
mnabialek Aug 15, 2016
e44f140
change method order
taylorotwell Aug 15, 2016
4c0e72e
Fire events on channel level and add event before sending (#14804)
themsaid Aug 15, 2016
0d33945
fix order
taylorotwell Aug 15, 2016
5350557
fix method order
taylorotwell Aug 15, 2016
8de7d6f
[5.3] Change read to timestamp from boolean (#14797)
alexbowers Aug 16, 2016
8bc8df3
check for method
taylorotwell Aug 16, 2016
ee959a8
add more expressive helper for app
taylorotwell Aug 16, 2016
4eee050
Only mark read_at if not already set (#14840)
dwightwatson Aug 16, 2016
6cdef4b
Add the great macroable to Lang (#14844)
mul14 Aug 16, 2016
25ce084
Added Support for PhpRedis
tillkruss Aug 30, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.nitpick.json export-ignore
.php_cs export-ignore
.travis.yml export-ignore
phpunit.xml export-ignore
phpunit.xml.dist export-ignore
CHANGELOG.md export-ignore
CONTRIBUTING.md export-ignore
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ composer.lock
.php_cs.cache
.DS_Store
Thumbs.db
/phpunit.xml
5 changes: 0 additions & 5 deletions .nitpick.json

This file was deleted.

1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ language: php
php:
- 5.6
- 7.0
- hhvm

env:
global:
Expand Down
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,40 @@
# Release Notes

## v5.2.43 (2016-08-10)

### Changed
- Throw exception if `$amount` is not numeric in `increment()` and `decrement()` ([915cb84](https://github.com/laravel/framework/commit/915cb843981ad434b10709425d968bf2db37cb1a))


## v5.2.42 (2016-08-08)

### Added
- Allow `BelongsToMany::detach()` to accept a collection ([#14412](https://github.com/laravel/framework/pull/14412))
- Added `whereTime()` and `orWhereTime()` to query builder ([#14528](https://github.com/laravel/framework/pull/14528))
- Added PHP 7.1 support ([#14549](https://github.com/laravel/framework/pull/14549))
- Allow collections to be created from objects that implement `Traversable` ([#14628](https://github.com/laravel/framework/pull/14628))
- Support dot notation in `Request::exists()` ([#14660](https://github.com/laravel/framework/pull/14660))
- Added missing `Model::makeHidden()` method ([#14641](https://github.com/laravel/framework/pull/14641))

### Changed
- Return `true` when `$key` is empty in `MessageBag::has()` ([#14409](https://github.com/laravel/framework/pull/14409))
- Optimized `Filesystem::moveDirectory` ([#14362](https://github.com/laravel/framework/pull/14362))
- Convert `$count` to integer in `Str::plural()` ([#14502](https://github.com/laravel/framework/pull/14502))
- Handle arrays in `validateIn()` method ([#14607](https://github.com/laravel/framework/pull/14607))

### Fixed
- Fixed an issue with `wherePivotIn()` ([#14397](https://github.com/laravel/framework/issues/14397))
- Fixed PDO connection on HHVM ([#14429](https://github.com/laravel/framework/pull/14429))
- Prevent `make:migration` from creating duplicate classes ([#14432](https://github.com/laravel/framework/pull/14432))
- Fixed lazy eager loading issue in `LengthAwarePaginator` collection ([#14476](https://github.com/laravel/framework/pull/14476))
- Fixed plural form of Pokémon ([#14525](https://github.com/laravel/framework/pull/14525))
- Fixed authentication bug in `TokenGuard::validate()` ([#14568](https://github.com/laravel/framework/pull/14568))
- Fix missing middleware parameters when using `authorizeResource()` ([#14592](https://github.com/laravel/framework/pull/14592))

### Removed
- Removed duplicate interface implementation in `Dispatcher` ([#14515](https://github.com/laravel/framework/pull/14515))


## v5.2.41 (2016-07-20)

### Changed
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Laravel Contribution Guide

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](http://laravel.com/docs/contributions). Please review the entire guide before sending a pull request.
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). Please review the entire guide before sending a pull request.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"homepage": "http://laravel.com",
"homepage": "https://laravel.com",
"support": {
"issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework"
},
"authors": [
{
"name": "Taylor Otwell",
"email": "taylorotwell@gmail.com"
"email": "taylor@laravel.com"
}
],
"require": {
Expand All @@ -27,6 +27,7 @@
"nesbot/carbon": "~1.20",
"paragonie/random_compat": "~1.4|~2.0",
"psy/psysh": "0.7.*",
"ramsey/uuid": "~3.0",
"swiftmailer/swiftmailer": "~5.1",
"symfony/console": "3.1.*",
"symfony/debug": "3.1.*",
Expand Down
6 changes: 6 additions & 0 deletions phpunit.xml → phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,10 @@
</exclude>
</whitelist>
</filter>
<php>
<!--
<env name="REDIS_HOST" value="127.0.0.1" />
<env name="REDIS_PORT" value="6379" />
-->
</php>
</phpunit>
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ Laravel is accessible, yet powerful, providing powerful tools needed for large,

## Official Documentation

Documentation for the framework can be found on the [Laravel website](http://laravel.com/docs).
Documentation for the framework can be found on the [Laravel website](https://laravel.com/docs).

## Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](http://laravel.com/docs/contributions).
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).

## Security Vulnerabilities

Expand Down
6 changes: 2 additions & 4 deletions src/Illuminate/Auth/Access/Gate.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,9 @@ protected function resolvePolicyCallback($user, $ability, array $arguments)
}

// If the first argument is a string, that means they are passing a class name
// to the policy. We'll append "Any" to this ability name so that users may
// call the policy method with either a class or model name consistently.
// to the policy. We will remove the first argument from this argument list
// because the policy already knows what type of models it can authorize.
if (isset($arguments[0]) && is_string($arguments[0])) {
$ability = $ability.'Any';

array_shift($arguments);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace {{namespace}}Http\Controllers;

use {{namespace}}Http\Requests;
use Illuminate\Http\Request;

class HomeController extends Controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<label for="email" class="col-md-4 control-label">E-Mail Address</label>

<div class="col-md-6">
<input id="email" type="email" class="form-control" name="email" value="{{ $email or old('email') }}">
<input id="email" type="email" class="form-control" name="email" value="{{ $email or old('email') }}" autofocus>

@if ($errors->has('email'))
<span class="help-block">
Expand Down
10 changes: 10 additions & 0 deletions src/Illuminate/Auth/Console/stubs/make/views/layouts/app.stub
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,20 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">

<title>Laravel</title>

<!-- Styles -->
<link href="/css/app.css" rel="stylesheet">

<!-- Scripts -->
<script>
window.Laravel = <?php echo json_encode([
'csrfToken' => csrf_token(),
]); ?>
</script>
</head>
<body>
<nav class="navbar navbar-default navbar-static-top">
Expand Down
18 changes: 12 additions & 6 deletions src/Illuminate/Auth/Middleware/Authorize.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ public function __construct(Auth $auth, Gate $gate)
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string $ability
* @param string|null $model
* @param array|null $models
* @return mixed
*
* @throws \Illuminate\Auth\Access\AuthenticationException
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function handle($request, Closure $next, $ability, $model = null)
public function handle($request, Closure $next, $ability, ...$models)
{
$this->auth->authenticate();

$this->gate->authorize($ability, $this->getGateArguments($request, $model));
$this->gate->authorize($ability, $this->getGateArguments($request, $models));

return $next($request);
}
Expand All @@ -60,12 +60,18 @@ public function handle($request, Closure $next, $ability, $model = null)
* Get the arguments parameter for the gate.
*
* @param \Illuminate\Http\Request $request
* @param string|null $model
* @param array|null $models
* @return array|string|\Illuminate\Database\Eloquent\Model
*/
protected function getGateArguments($request, $model)
protected function getGateArguments($request, $models)
{
return is_null($model) ? [] : $this->getModel($request, $model);
if (is_null($models)) {
return [];
}

return collect($models)->map(function ($model) use ($request) {
return $this->getModel($request, $model);
})->all();
}

/**
Expand Down
18 changes: 11 additions & 7 deletions src/Illuminate/Auth/Notifications/ResetPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Illuminate\Auth\Notifications;

use Illuminate\Notifications\Notification;
use Illuminate\Notifications\Messages\MailMessage;

class ResetPassword extends Notification
{
Expand Down Expand Up @@ -36,15 +37,18 @@ public function via($notifiable)
}

/**
* Get the notification message.
* Build the mail representation of the notification.
*
* @param mixed $notifiable
* @return \Illuminate\Notifications\MessageBuilder
* @return \Illuminate\Notifications\Messages\MailMessage
*/
public function message($notifiable)
public function toMail()
{
return $this->line('You are receiving this email because we received a password reset request for your account. Click the button below to reset your password:')
->action('Reset Password', url('password/reset', $this->token).'?email='.urlencode($notifiable->email))
->line('If you did not request a password reset, no further action is required.');
return (new MailMessage)
->line([
'You are receiving this email because we received a password reset request for your account.',
'Click the button below to reset your password:',
])
->action('Reset Password', url('password/reset', $this->token))
->line('If you did not request a password reset, no further action is required.');
}
}
5 changes: 2 additions & 3 deletions src/Illuminate/Auth/RequestGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ class RequestGuard implements Guard
* Create a new authentication guard.
*
* @param callable $callback
* @param \Symfony\Component\HttpFoundation\Request $request
* @param \Illuminate\Http\Request $request
* @return void
*/
public function __construct(callable $callback,
Request $request)
public function __construct(callable $callback, Request $request)
{
$this->request = $request;
$this->callback = $callback;
Expand Down
4 changes: 4 additions & 0 deletions src/Illuminate/Auth/TokenGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ protected function getTokenForRequest()
*/
public function validate(array $credentials = [])
{
if (empty($credentials[$this->inputKey])) {
return false;
}

$credentials = [$this->storageKey => $credentials[$this->inputKey]];

if ($this->provider->retrieveByCredentials($credentials)) {
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Auth/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"name": "illuminate/auth",
"description": "The Illuminate Auth package.",
"license": "MIT",
"homepage": "http://laravel.com",
"homepage": "https://laravel.com",
"support": {
"issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework"
},
"authors": [
{
"name": "Taylor Otwell",
"email": "taylorotwell@gmail.com"
"email": "taylor@laravel.com"
}
],
"require": {
Expand Down
20 changes: 2 additions & 18 deletions src/Illuminate/Broadcasting/BroadcastController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Illuminate\Broadcasting;

use Illuminate\Support\Str;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Broadcast;
Expand All @@ -13,25 +12,10 @@ class BroadcastController extends Controller
* Authenticate the request for channel access.
*
* @param \Illuminate\Http\Request $request
* @return void
* @return \Illuminate\Http\Response
*/
public function authenticate(Request $request)
{
if (Str::startsWith($request->channel_name, 'presence-') && ! $request->user()) {
abort(403);
}

return Broadcast::check($request);
}

/**
* Store the socket ID for the current user.
*
* @param \Illuminate\Http\Request $request
* @return void
*/
public function rememberSocket(Request $request)
{
return Broadcast::rememberSocket($request);
return Broadcast::auth($request);
}
}
8 changes: 7 additions & 1 deletion src/Illuminate/Broadcasting/BroadcastEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,14 @@ public function fire(Job $job, array $data)
$name = method_exists($event, 'broadcastAs')
? $event->broadcastAs() : get_class($event);

$channels = $event->broadcastOn();

if (! is_array($channels)) {
$channels = [$channels];
}

$this->broadcaster->broadcast(
$event->broadcastOn(), $name, $this->getPayloadFromEvent($event)
$channels, $name, $this->getPayloadFromEvent($event)
);

$job->delete();
Expand Down
Loading