Open KnowledgeWanderer opened 5 years ago
env APP_URL=http://localhost:8000 GALLERY_DISK=public_gian
filesystems.php 'public_gian' => [ 'driver' => 'local', 'root' => public_path('/users/photo'), 'url' => env('APP_URL') . '/users/photo', ],
Changed the GALLERY_DISK to gallery, same thing. What's the issue? It just says "No album matched the given criteria." HEEELP
Anyone cares?
I'm not using this package. But i think this should be work:
This package come with two model EricLagarda\NovaGallery\Models\Album
and EricLagarda\NovaGallery\Models\Photo
.
For example in a blog scenario:
album_id
column at posts
table.Post
model make a relation with Album
model:
public function album()
{
$this->hasOne(EricLagarda\NovaGallery\Models\Album::class);
}
Post
resource make a HasOne
relation field.
So I did everything in the installation documentation and injected this in the env file:
GALLERY_DISK=APP_URL."/storage/gallery"
Also, in filesystems I created this:Thing is that I'm not sure how to actually use it. As in Nova Gallery i get "No album matched the given criteria.". Should I create relationships, like many to many for galleries on the Nova Resource I want to use?
Maybe improve the documentation?