user() && $this->user()->hasPermission('edit-themes'); } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'theme' => 'required|string', 'path' => 'required|string', 'content' => 'present|string', ]; } }