lk.zachem.info/app/Http/Controllers/NotificationProbeController.php
2025-06-18 17:12:19 +08:00

20 lines
397 B
PHP

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Deal\Deal;
use App\Notifications\Deal\DealCreated;
class NotificationProbeController extends Controller
{
public function index()
{
Deal::find(4)->notify(new DealCreated());
echo auth()->user()->unreadNotifications->count() . '<br>';
die(auth()->user()->notifications);
}
}