Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

image storage storepublicy in 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: #image #storage #storepublicy #laravel
ADD COMMENT
Topic
Name
5+1 =