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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.5] Add `notifyNow` shortcut to `AnonymousNotifiable` #22530

Merged
merged 1 commit into from Dec 25, 2017

Conversation

Projects
None yet
2 participants
@stayallive
Contributor

stayallive commented Dec 24, 2017

This allows you to do:

Notification::route('mail', 'me@alexbouma.me')
    ->notifyNow(new UserNotification($message));

Very useful for making sure a notification gets sent immediately (for testing notifications).

Not sure where and if to add tests... any directions for this are appreciated!

(FWIW: I did test it in a application ofcourse 馃槃)

@taylorotwell taylorotwell merged commit 2b4ee74 into laravel:5.5 Dec 25, 2017

2 checks passed

continuous-integration/styleci/pr The StyleCI analysis has passed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@stayallive stayallive deleted the stayallive:add-sendnow-to-anon-notifications branch Dec 25, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment