invitation = $invitation; $this->credit = $invitation->credit; $this->contact = $invitation->contact; } public function run() { if (! $this->contact) { $this->contact = $this->credit->client->primary_contact()->first(); } $path = $this->credit->client->credit_filepath($this->invitation); $file_path = $path.$this->credit->numberFormatter().'.pdf'; // $disk = 'public'; $disk = config('filesystems.default'); $file_path = CreateEntityPdf::dispatchNow($this->invitation); nlog($file_path); return $file_path; // return Storage::disk($disk)->path($file_path); } }