user() && $this->user()->hasPermission('upload-themes'); } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'theme_zip' => 'required|file|mimes:zip|max:10240', // Max 10MB ]; } }