UserNotificationPreferenceController
extends Controller
in package
Table of Contents
Methods
- __construct() : mixed
- Class constructor
- edit() : Response
- Show the form for editing the user's notification preference resource.
- index() : Response
- Display a listing of the user notification preferences resource.
- update() : RedirectResponse
- Update the user notification preference resource in storage.
Methods
__construct()
Class constructor
public
__construct() : mixed
edit()
Show the form for editing the user's notification preference resource.
public
edit(UserNotificationPreference $usernotificationpreference) : Response
Parameters
- $usernotificationpreference : UserNotificationPreference
-
the user notification preference to edit
Return values
Response —inertia response
index()
Display a listing of the user notification preferences resource.
public
index() : Response
Return values
Response —inertia response
update()
Update the user notification preference resource in storage.
public
update(UpdateUserNotificationPreferenceRequest $request, UserNotificationPreference $usernotificationpreference) : RedirectResponse
Parameters
- $request : UpdateUserNotificationPreferenceRequest
-
user submitted form response
- $usernotificationpreference : UserNotificationPreference
-
user notification preference to update
Return values
RedirectResponse —redirect to the index page of user notification preferences on success