quote = $quote; $this->contact = $contact; } public function run() { if (! $this->contact) { $this->contact = $this->quote->client->primary_contact()->first() ?: $this->quote->client->contacts()->first(); } $invitation = $this->quote->invitations->where('client_contact_id', $this->contact->id)->first(); $path = $this->quote->client->quote_filepath($invitation); $file_path = $path.$this->quote->numberFormatter().'.pdf'; // $disk = 'public'; $disk = config('filesystems.default'); $file_path = CreateEntityPdf::dispatchNow($invitation); return $file_path; //return Storage::disk($disk)->path($file_path); } }