Hide field in form

Hi, I am creating different resources, depending on the type of role, but, I want it to NOT SHOW, just send a default role.

This is my code:

Select::make('roles')
->relationship('roles', 'name')
->default(Role::where('name', 'student')->first()->id)
->preload(),
image.png
Was this page helpful?