for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Adminetic\Announcement\View\Components;
use Illuminate\Support\Facades\Auth;
use Illuminate\View\Component;
class AnnouncementNotificationBell extends Component
{
/**
* Create a new component instance.
*
* @return void
*/
public function __construct()
//
}
* Get the view / contents that represent the component.
* @return \Illuminate\Contracts\View\View|\Closure|string
public function render()
$unread_notifications = Auth::user()->unreadNotifications;
unreadNotifications
Illuminate\Contracts\Auth\Authenticatable
instanceof
return view('announcement::admin.components.announcement-notification-bell', compact('unread_notifications'));