Last active
September 21, 2017 15:39
-
-
Save uno-de-piera/e153244e606d51c831a5c38a9170da6c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function update(User $user) | |
{ | |
if(request('email') !== $user->email) { | |
$user->notify(new NotificationClass); | |
} | |
$user->fill(request()->input())->save(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment