How To Create An Ecommerce Store With Laravel in 2024 - Part 4

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024
  • Get in Contact for Website Help: mapilitmedia.c...
    In part 3 of the Laravel E-commerce series, I will go over adding images to the application. I will add a homepage banner and then set up migration files for products and categories to add a photo to each object.
    Timestamps:
    Homepage Banner - 0:20
    Product/Category Image Migration Files - 7:35
    Adding Images to Products/Categories - 10:30
    Displaying Dynamic Images: 12:50
    Updating Product/Category views - 15:30
    Revising Layout: 16:43
    Recommended Hosting(Free Trial): www.cloudways....
    If you're looking for help with improving your online presence, you can check out my business website for more details and book a consultation: mapilitmedia.ca/
    Comment if you have any questions regarding the video, and I'll be available to help.
    Please Like & Subscribe for more amazing content like this 👍 Let's Learn & Grow Together 🚀

ความคิดเห็น • 2

  • @bluhuma1123
    @bluhuma1123 2 หลายเดือนก่อน

    Hello, i am a little stuck on @15:04 minute on your video, i do create the database table entry like you do "image_url" but when defining the image in database it wont show the image, it shows this little broken image icon with text of my product or category name.
    All my images are in C:\wamp64\www\Laravel\public\images
    and in phpmyadmin in the "image_url" table there is a entry that i made like \images\test.jpg just like you.
    otherwise inspecting the webpage i get "Failed to load resource: the server responded with a status of 404 (Not Found)"
    im not sure what other information i can provide.
    Hope to hear from you regarding this problem i have.
    Edit:
    I might be thinking that it wants to get the images from wamp www folder instead of \public\images
    will try to make a folder there called images and see what happens.
    Edit:Edit:
    Yes, this seemed to be the problem for me,
    could i ask how to make it take the images from laravel folder and not from www
    will leave this comment here for others if they get same problem that i had .

    • @mapilitmedia
      @mapilitmedia  2 หลายเดือนก่อน

      Hi, yes double check that you're calling the correct image in the view including the file extension.
      You can also try php artisan storage:link
      Also in the.env file you can check that the APP_URL value is correct and set to localhost:8000