-
-
Save cursosdesarrolloweb/3499ec204fe28f10a97155f3056a584b to your computer and use it in GitHub Desktop.
This file contains 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 | |
use App\Models\User; | |
use App\Notifications\HelloUser; | |
use Illuminate\Support\Facades\Route; | |
Route::get('/', function () { | |
User::get()->each->notify(new HelloUser); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment