F
Filament13mo 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
BJOP13mo ago
img still loaded but nothing apear!!!
Vp
Vp13mo ago
what is your APP_URL in .env?
BJ
BJOP13mo ago
APP_URL=http://localhost:8000 local here apear good
Vp
Vp13mo ago
Do you have any accessor or mutator? I have this kind of problem before because of my accessor in model
BJ
BJOP13mo ago
like what this accessor
Vp
Vp13mo 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 charfaoui13mo ago
php artisan storage:link
BJ
BJOP13mo 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
arsadi13mo ago
can you check your console? is there any error on create/edit page?
BJ
BJOP13mo 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
arsadi13mo ago
please try to change your APP_URL with 127.0.0.1:8000
BJ
BJOP13mo ago
Deal works thanks alot

Did you find this page helpful?