| 1 | <?php |
||
| 8 | class NotificationsController extends Controller |
||
| 9 | { |
||
| 10 | public function unread() |
||
| 17 | |||
| 18 | public function index(Request $request) |
||
|
|
|||
| 19 | { |
||
| 20 | $notifications = Auth::user()->notifications(); |
||
| 21 | Auth::user()->notification_count = 0; |
||
| 22 | Auth::user()->save(); |
||
| 23 | |||
| 24 | return view('siravel::components.modules.notifications.index', compact('notifications')); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function count() |
||
| 31 | } |
||
| 32 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.