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.
💕😮
why not using $table->foreignId('category_id')->constrained(); ???
No need to cut for refreshing. There is menu for refreshing.
Thanks. I didnot know back then :).
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
Please check your database..if their is any data in table which you're fetching as $qurans..let me know..
@@codeonline2683 hello, i face the same problem, it says undefined
may i know how you settle it down?