Image not showing on table column
Hi, i just trying to create a product crud with image upload inside. The image was uploaded in /storage/public/product, but not showing in my table
32 Replies
did you run
php artisan storage:link
?
did you config APP_URL in the .env?
console errors?could you show a screenshot?
could you share the code?
sure
add this tooltip
what is showing on the tooltip?
lemme try
that's give me error
there is no
state
from foto
column. Are you sure that is the column name?
Any Filament customizations?
whats wrong?
this seems like you don't have
foto
column in this model/resource 😅
Are you able to share this project on github?
could you share Barang model?umm model?
sure
what is the tooltip?
:depressed_tofu:
how sir..?
remove
foto
from guarded in your modelthen..?
create a fillable ?
app/Models/Barang.php
ahh and rename to Barang.php instead of barang.php
here
already?
done
im also already change the Barang.php class to Barang
should work
lemme try
upload the image again
finnaly
alright, big thankss!
so the problem, is in the models?
yep
thankyou!
you can set your repo private now 👍
It's okay, I did it on purpose 😊
anyway, thank you a lott