mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:37:33 -05:00 
			
		
		
		
	Merge pull request #6009 from turbo124/v5-develop
Declare disk for storage
This commit is contained in:
		
						commit
						3aefc1ba41
					
				@ -193,8 +193,8 @@ class CreateEntityPdf implements ShouldQueue
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            try{
 | 
					            try{
 | 
				
			||||||
                
 | 
					                
 | 
				
			||||||
                if(!Storage::disk(config('filesystems.default'))->exists($path))
 | 
					                if(!Storage::disk($this->disk)->exists($path))
 | 
				
			||||||
                    Storage::disk(config('filesystems.default'))->makeDirectory($path, 0775);
 | 
					                    Storage::disk($this->disk)->makeDirectory($path, 0775);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                nlog($file_path);
 | 
					                nlog($file_path);
 | 
				
			||||||
                
 | 
					                
 | 
				
			||||||
 | 
				
			|||||||
@ -106,8 +106,8 @@ class GenerateDeliveryNote
 | 
				
			|||||||
            info($maker->getCompiledHTML());
 | 
					            info($maker->getCompiledHTML());
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if(!Storage::exists($this->invoice->client->invoice_filepath($invitation)))
 | 
					        if(!Storage::disk($this->disk)->exists($this->invoice->client->invoice_filepath($invitation)))
 | 
				
			||||||
            Storage::makeDirectory($this->invoice->client->invoice_filepath($invitation), 0775);
 | 
					            Storage::disk($this->disk)->makeDirectory($this->invoice->client->invoice_filepath($invitation), 0775);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Storage::disk($this->disk)->put($file_path, $pdf);
 | 
					        Storage::disk($this->disk)->put($file_path, $pdf);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user