Laravel UpdateUserRequest validation rule with user id
I have a User
model, and this is my update()
method in UserController
:
Cannot delete role in laravel permission by spatie
I’m using laravel permission package in my laravel 11 app. Below is my role model
Laravel 11 – validated() and related table
I’d like to insert the user-id of the current user into a table in column “user_id”. The field is a relation to the user table.