lk.zachem.info/app/Http/Controllers/NotificationProbeController.php

21 lines
500 B
PHP

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