composer require routegroup/laravel-alert.
And then, if using Laravel 5, include the service provider within
'providers' => [ 'Routegroup\Alert\AlertServiceProvider' ];
And, for convenience, add a facade alias to this same file at the bottom:
'aliases' => [ 'Flash' => 'Routegroup\Alert\Alert' ];
$user = User::create([...]); alert($user)->created('Successful created message');
Warning: If object has not anything changed then it will errors occured!
$user->fill([...]); $user->save(); alert($user)->updated('Successful updated message');
$user->delete(); alert($user)->deleted('Successful deleted message');