Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Images are not displayed on the site after they are sent through the database Laravel Backpack

I encountered a problem that after uploading a photo to the site through the admin panel, the photo appears in the database but does not appear in the public folder for display on the site.
I did not change the filesystem.php after the backpack installation. The only changes were in this file, where the interactions are written

InstagramPostsCrudController.php

protected function setupCreateOperation()
    {
        CRUD::setValidation(InstagramPostsRequest::class);
        CRUD::setFromDb();
        CRUD::field('photo')->type('upload');
    }

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

as our docs says, please try with

CRUD::field('photo')->type('upload')->withFiles(true);

Make sure you have correctly set the public symlink too

php artisan storage:link

Cheers.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading