cp .env.example .env
composer install
npm install
touch database/database.sqlite
php artisan migrate
composer run dev
php artisan reverb:start
open http://127.0.0.1:8000
php artisan tinker
Use the sign up form to register a new user.
go to dashboard and reload the page.
In tinker:
App\Models\User::first()->notify(new App\Notifications\Whatever());
Result: One console log output with whatever ...
- go to dashboard and reload the page.
- go to user Setting via Inertia Link
- go to dashboard via Inertia Link
In tinker:
App\Models\User::first()->notify(new App\Notifications\Whatever());
Result: Multiple console log outputs with whatever ...