Authorization

if you want to authorize field for custom users or condition you can use canSee method

canSee()

return false or true to hide or show field:

Text::make('Name')
     ->canSee(function (){
      return false;
     })
    ->rules('required', 'max:255')
1
2
3
4
5