Laravel Model and Migration, Use Controller to send data from Model to View

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024
  • This video describes the making of Model, migration and Controller using CLI and make a table and use Model to show the data in View file using Controller.

Комментарии • 8

  • @gaganpokharel7063
    @gaganpokharel7063 4 года назад +1

    💕😮

  • @luckyplaya84x
    @luckyplaya84x 3 года назад

    why not using $table->foreignId('category_id')->constrained(); ???

  • @kusalniraula1885
    @kusalniraula1885 4 года назад

    No need to cut for refreshing. There is menu for refreshing.

  • @ezianhamdan9465
    @ezianhamdan9465 4 года назад

    I followed all of your correct steps but somehow it says $qurans is undefined
    Make the variable optional in the blade template. Replace {{ $qurans }} with {{ $qurans ?? '' }}... The $qurans is same like your $products but I don't understand why it says that it is undefined

    • @codeonline2683
      @codeonline2683  4 года назад

      Please check your database..if their is any data in table which you're fetching as $qurans..let me know..

    • @umiiyliabintiismail6573
      @umiiyliabintiismail6573 Год назад

      @@codeonline2683 hello, i face the same problem, it says undefined

    • @umiiyliabintiismail6573
      @umiiyliabintiismail6573 Год назад

      may i know how you settle it down?