I'm new to this package since I usually use the image intervention. So the problem is whenever I save an image, it is saving in storage directory instead of in public directory. I tried to review the documentation and did some research and didn't see any answer. Please see my code below for saving.
$user->addMediaFromRequest('avatar')->toMediaCollection('avatars');
Package:
you can simply define the filesystem config with
$user->addMediaFromRequest('avatar')->toMediaCollection('avatars', 'disk');
here is how im using the package(simple usage), if you need it later
on my model:
to get the file-url im using model accessor, added this function in my model:
also using custom path, in config\medialibrary.php set this array
'path_generator' => Path\To\Your\Class::class,
then the class :