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