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']); 
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #file #storage #laravel
ADD COMMENT
Topic
Name
2+5 =