Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

file storage laravel

// First Method
use IlluminateSupportFacadesStorage;
 
Storage::disk('local')->put('example.txt', 'Contents');

// Second Method

$request->file('image')->storePublicly('images/media', ['disk' => 'public']); 
 
PREVIOUS NEXT
Tagged: #file #storage #laravel
ADD COMMENT
Topic
Name
2+4 =