mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-06 02:33:48 +00:00
16 lines
371 B
PHP
16 lines
371 B
PHP
<?php
|
|
namespace Domain\Notifications\Controllers;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Domain\Notifications\Resources\NotificationCollection;
|
|
|
|
class GetUserNotificationsController extends Controller
|
|
{
|
|
public function __invoke(): NotificationCollection
|
|
{
|
|
return new NotificationCollection(
|
|
auth()->user()->notifications
|
|
);
|
|
}
|
|
}
|