F
Filament15mo ago
BJ

image in edit not apear if i create image then when click edit button the image in downloaded only

fi
12 Replies
BJ
BJOP15mo ago
img still loaded but nothing apear!!!
Vp
Vp15mo ago
what is your APP_URL in .env?
BJ
BJOP15mo ago
APP_URL=http://localhost:8000 local here apear good
Vp
Vp15mo ago
Do you have any accessor or mutator? I have this kind of problem before because of my accessor in model
BJ
BJOP15mo ago
like what this accessor
Vp
Vp15mo ago
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
karim charfaoui
karim charfaoui15mo ago
php artisan storage:link
BJ
BJOP15mo ago
i did it is good if i added then go to index page but when i go to action edit and view it just downloaded nothing of those in my model
arsadi
arsadi15mo ago
can you check your console? is there any error on create/edit page?
BJ
BJOP15mo ago
blocked by core edit:1 Access to fetch at 'http://localhost:8000/storage/ima/eMskRQUQLQGEgK9cHoSMVKNdkkdRAOOPl0SLIOBA.png' from origin 'http://127.0.0.1:8000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
arsadi
arsadi15mo ago
please try to change your APP_URL with 127.0.0.1:8000
BJ
BJOP15mo ago
Deal works thanks alot

Did you find this page helpful?