#5 Show Product Data From Database in Laravel | Laravel 9 E-commerce Project Tutorial For Beginners

Поділитися
Вставка
  • Опубліковано 19 вер 2024
  • #laravel #laravelecommerceproject #laravelecommerce #laravelshowdatafromdatabase #laravel8
    Laravel E-commerce Project Tutorial Playlist: • Laravel E-commerce Pro...
    Buy me a Coffee 🥰 : www.buymeacoff...
    Thanks For Watching.
    Support This Channel :
    Join this channel to get access to perks:
    / @webtechknowledge
    Your support will be really appreciated.
    I hope This video was helpful.
    If you have any questions then let me know in the comment section.
    Best of luck.
    #webtechknowledge
    You can connect with me with the given links below:
    Please Subscribe to this channel: / @webtechknowledge
    Join this channel to get access to perks:
    / @webtechknowledge
    Follow me on :
    Facebook Link: / yaminshakil07
    Instagram Link: / yamin_shakil
    Twitter Link: / yaheashakil
    #5 Laravel 8 E-commerce Project Tutorial For Beginners
    #5 Show Product Data From Database in Laravel | Laravel 8 E-commerce Project Tutorial For Beginners

КОМЕНТАРІ • 36

  • @WebTechKnowledge
    @WebTechKnowledge  3 роки тому +2

    Subscribe this channel because i will upload 1 video every 24 hours . So you will get the notification .

  • @rajendraparmar1501
    @rajendraparmar1501 3 роки тому

    Great Job Sir!!!..

  • @celluleprogres848
    @celluleprogres848 2 роки тому

    Thank you sir

  • @alifaiman4566
    @alifaiman4566 2 роки тому +2

    Sir please help me. I get the "Undefined variable $data" error. I think it is from HomeController. All I did was following you step by step but why is this happening :( Please help sir

    • @guitarcovers1415
      @guitarcovers1415 2 роки тому

      I had this error too.And then,I log out from the user and it worked.

    • @MakarMela-ee5ui
      @MakarMela-ee5ui 2 роки тому +3

      You need to add this to both redirect and index function inside HomeController.php to work properly for both logged in and guest users
      $data = product::all();
      return view('user.home',compact('data'));

    • @juniorayinda6401
      @juniorayinda6401 2 роки тому

      @@MakarMela-ee5ui do not still understand

    • @juniorayinda6401
      @juniorayinda6401 2 роки тому

      did he do a video to fix it?

    • @juniorayinda6401
      @juniorayinda6401 2 роки тому

      @@MakarMela-ee5ui thanks i did it

  • @shreechalse1865
    @shreechalse1865 2 роки тому

    Sir how to Show Added Products in Our Products Page

  • @rafovirabyan7239
    @rafovirabyan7239 2 роки тому

    {{ $data->links()}}

  • @naruse4683
    @naruse4683 2 роки тому

    I got an error in my $data
    Undefined variable: data (View:\onlineshop
    esources\views\user\product.blade.php)
    $data is undefined
    how to solve the problem?

    • @WebTechKnowledge
      @WebTechKnowledge  2 роки тому

      You probably did not send data from the controller to view properly

    • @emerikjuric2838
      @emerikjuric2838 2 роки тому

      what was the problem?!?!?!

    • @elenahyseni2282
      @elenahyseni2282 2 роки тому +1

      @@WebTechKnowledge How can we properly do this? Can you please share the code (in text) for this 2 files only? I think I have the correct code but I still get the same error.

    • @soflips4452
      @soflips4452 Рік тому

      user $product variable alternativ e$data

  • @md.alomgirhossainsummer182
    @md.alomgirhossainsummer182 2 роки тому

    Class 'App\Model\Product' not found

    • @WebTechKnowledge
      @WebTechKnowledge  2 роки тому

      You need to add the model name at the top of Your controller

  • @musikpopuler6402
    @musikpopuler6402 2 роки тому +1

    Sir please answer, I got an error :
    Undefined variable: data (View: D:\Ecommerce
    esources\view\User\product. blade.php)
    How to solve the error?

    • @WebTechKnowledge
      @WebTechKnowledge  2 роки тому

      $data is missing either in view or in the controller
      Check them properly

    • @musikpopuler6402
      @musikpopuler6402 2 роки тому

      I think it's correct, may I ask for your email, to provide my coding, so that it can be corrected together?

    • @WebTechKnowledge
      @WebTechKnowledge  2 роки тому

      @@musikpopuler6402 yaminshakil7@gmail.com

    • @musikpopuler6402
      @musikpopuler6402 2 роки тому

      @@WebTechKnowledge Thanks sir

    • @emerikjuric2838
      @emerikjuric2838 2 роки тому

      what was the problem?!?!?!

  • @fluf265
    @fluf265 2 роки тому

    Need the source code

  • @muktavaiict7203
    @muktavaiict7203 2 роки тому

    Call to undefined method App\Models\Product::links()

    • @muktavaiict7203
      @muktavaiict7203 2 роки тому

      pagination not work

    • @WebTechKnowledge
      @WebTechKnowledge  2 роки тому

      In the foreach write $product as $products

    • @muktavaiict7203
      @muktavaiict7203 2 роки тому

      @@WebTechKnowledge login korar pore user btn btn show na korar karon ki vai

    • @WebTechKnowledge
      @WebTechKnowledge  2 роки тому

      class="btn btn-success!important" den taile solve hoye jabe.
      Login korar por kisu template er css r laravel er css overlap kore tai ei problem hoi