Jeroen-G / laravel-photo-gallery

A photo gallery for Laravel
40 stars 32 forks source link

[PDOException] SQLSTATE[HY000] [2002] No such file or directory #25

Closed Jakub41 closed 9 years ago

Jakub41 commented 10 years ago

Hi, When I wrote the command php artisan migrate --package="jeroen-g/laravel-photo-gallery" I received the error [PDOException] SQLSTATE[HY000] [2002] No such file or directory. Can you help me to fix it? Thanks Jakub

Jakub41 commented 10 years ago

I fix it the problem

Jeroen-G commented 10 years ago

Could you explain what you did, to help others in the future? :smile:

Jakub41 commented 10 years ago

Hello, the problem was in the db config of laravel. I just deleted and wrote it again and then the command worked. :-)

Jakub41 commented 10 years ago

I have one last question. I'm trying with your system to create a single page for the photo gallery inside my project. I wouldl ike to have in the back the possibility to create the albums and in front only the page with the photo albums. You have some suggestion if this is possible from your system to make and how? Thank you

Jeroen-G commented 10 years ago

I don't really get what you mean. What do you mean with 'back' and 'front' of what?

Jakub41 commented 10 years ago

I mean in my project to have a page for the album photo galleries and a system in the back end only for the admin to create this albums and add photos. Piratically one page a front end what every one see with the albums and when you click one of that you see the photos inside. The system to make the albums with the photos in the back end for the admin.

Jeroen-G commented 10 years ago

Yes, you can do that! The way the gallery looks can easily be adjusted. Follow the guide in the readme on publishing the views so you can make your own nice front end. It is possible to secure the backend with filters. Take a look at the routes file of the package to see which routes you need and then follow the docs (I think you need the pattern based filter).

Jakub41 commented 10 years ago

Thanks for your suggestions I'll try.