dimanche 8 décembre 2019

Two laravel project access same images assets publicly

I have two laravel project website and admin, and both are using the database. I have problem to access images that uploaded by admin (project) from website (project).

In another way:

the uploaded images by admin - project - will be in Admin\app\public\product\image.jpg and database insertion for image column will be product\image.jpg

And when the website - project - request the image, it assume that the image inside Website\app\public\product\image.jpg

So, How can I access the image as public from admin project not from website project

I can't migrate both projects because there are a lot of conflicts in controllers and views and so on...

via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire