bashar.ayyash
bashar.ayyash

Hi,

When I create a file instance of File object and save it, it will be stored by default in storage/app/uploads how can I change the storage path for the file:

use System\Models\File;

$x = new File();

$x = $x->fromFile(storage_path('app/media/image.jpg'); $x->save();

Thanx for help,

mjauvin
mjauvin
bashar.ayyash

1-4 of 4