79130769

Date: 2024-10-27 14:28:45
Score: 4.5
Natty:
Report link

I have the same problem... the image is in public : storage/images/image.png and the route is(http://127.0.0.1:8000/dashboard/category) whenn I try to Do this

success:function(response){
                        
                       =
                        $.each(response.res,function(key, subcat){
                            $('#table').append('<div  class="flex min-w-10 items-center justify-start gap-2 py-2"}`>\
               <img src="/storage/assets/images/subcat/'+subcat.image+')" class="w-16" alt="image">\);

not working bcs I got this as a url http://127.0.0.1:8000/dashboard/category/storage/assets/images/subcat/image.png and it's an 404 error

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same problem
  • Low reputation (1):
Posted by: Amin ED-Doryani