You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have tried the Moonshine admin panel with the Image class and it works very good Image::make('Heading image', 'cover') ->disk('media') ->dir('/posts') ->allowedExtensions(['jpg', 'gif', 'png']) ->removable(),
The MediaLibrary class also works for me, but the trouble is my directory '/posts' isn't created in my 'media' direcrory. When I add images to posts, I see new folders numerated '1' and '2' .... '10' with the images inside of them.
/storage/public/media/1
first_image.jpg
/storage/public/media/2
second_image.jpg
/storage/public/media/3...... etc.
So, the logic of method dir() of MediaLibrary class isn't the same as in Image class.
I've read the media-library.php config file also, but still don't know how to make dir() method working as it does with Image class.
The text was updated successfully, but these errors were encountered:
Hi, I have tried the Moonshine admin panel with the Image class and it works very good
Image::make('Heading image', 'cover') ->disk('media') ->dir('/posts') ->allowedExtensions(['jpg', 'gif', 'png']) ->removable(),
RESULT:
/storage/public/media/posts
first_image.jpg
second_image.jpg
The MediaLibrary class also works for me, but the trouble is my directory '/posts' isn't created in my 'media' direcrory. When I add images to posts, I see new folders numerated '1' and '2' .... '10' with the images inside of them.
/storage/public/media/1
first_image.jpg
/storage/public/media/2
second_image.jpg
/storage/public/media/3...... etc.
So, the logic of method dir() of MediaLibrary class isn't the same as in Image class.
I've read the media-library.php config file also, but still don't know how to make dir() method working as it does with Image class.
The text was updated successfully, but these errors were encountered: