user()->is_admin; } public function rules(): array { return [ 'name' => 'required', 'email' => 'required|email|unique:users', 'password' => 'required', 'is_admin' => 'required' ]; } }