Krato / NovaGallery

Photo gallery tool for Laravel Nova
9 stars 6 forks source link

I'm not sure how to use NovaGallery #1

Open KnowledgeWanderer opened 5 years ago

KnowledgeWanderer commented 5 years ago

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:

'gallery' => [
            'driver' => 'local',
            'root' => storage_path('app/public/gallery'),
            'url' => env('APP_URL').'/storage/gallery',
            'visibility' => 'public',
],

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?

giancarlozucoloto commented 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', ],

KnowledgeWanderer commented 5 years ago

Changed the GALLERY_DISK to gallery, same thing. What's the issue? It just says "No album matched the given criteria." HEEELP

KnowledgeWanderer commented 5 years ago

Anyone cares?

SadeghPM commented 5 years ago

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: