company = $company; $this->design_string = $design_string; $this->disk = $disk ?? config('filesystems.default'); } public function handle() { $path = $this->company->company_key; //Storage::makeDirectory($path, 0755); $file_path = $path . '/stream.pdf'; $pdf = $this->makePdf(null, null, $this->design_string); $instance = Storage::disk('local')->put($file_path, $pdf); return storage_path('app') .'/'. $file_path; } }