23 lines
513 B
PHP
23 lines
513 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;
|
|
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);
|
|
}
|
|
}
|