Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

storage in 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: #storage #laravel
ADD COMMENT
Topic
Name
4+6 =