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