Laravel 8 tutorial - Show List from Database Table
HTML-код
- Опубликовано: 16 сен 2020
- In this laravel 8 and Laravel 9 video tutorial, we learn how to fetch database table data and how on HTML page with mvc in a simple way. This video is made by anil Sidhu in the English language
steps of video
Make Model
Make Controller and View
Fetch Data from DB table
Show Data on Html Page
Interview Question over Model
Laravel 9 tutorial
Simple laravel tutorial
Laravel 9 playlist • Laravel 9 tutorial
Please support me by subscribe, like and comment :) thank you
you are great, plz make one detailed project based on laravel 10.
Sure
Wow I am amazed by the quality of these video. Best tutorials for Laravel on RUclips, I came here after watching Net Ninja's(A great teacher) Laravel series here on RUclips, but the series left so many doubts. But the way you are describing all the concepts and features of Laravel is really wonderful. Keep up the good work. May god's love be with you, always.
Very Clear and presize
Thanks buddy, you gave me a quick reminder of how this is implemented
you made it easy! really appreciating!!
you made it easy! really appreciating!! Thank you Thank you
Thank you, man. Really this is step by step lesson and everything is clear. You save my time nervуs. Good luck to you!
Thank you -- I have tried using many website tutorials - you made this easy to understand and easy to apply. Thank you so much!
You're very welcome!
thank you, this what i was looking for
you got a new subscriber, helpful video. Thanks.
Thank you. Your the best :)
interview question's answer: protected $table="table name"; use this line in models file
Really helpful, thanks!
very very helpful, thank you so much
thank u so much (code step by step) for making nice vedio::
you are the saver, thanks bro!!!!!!!!!!!!!!!!!!!!!!!
brother, you are best talk, thank you.. From Turkey say KEBABS..
Welcome brother
it was really helpfull, thank you
well done. I am learnig from bangladesh
you can use different table in different models like
protected $table="table name";
this was awesome
Thankill!!! very good, realy
Perfect !!
thanks, u helped me
Glad to hear that!
well done!
Thanks alote ♥️🖤
Thank you so much sir
oh you have made life so easy thanks and is there any way by which we can ask questions
Thank you man
You are a legend
Thank you sir
thanks
thanks praa
Sir also make video on how write clean code and code refactoring
Okay sure
thank you
For different table name and Model name
public $table= "table name" ;
Yess. You are right.. Thanks buddy
For different table name and Model name
public $variable_name = "Database table name" ;
I believe it was public $table = "Database table name"
Perfect
Thank you, for your helpful videos. Please let me ask you one question. Where we could show all data from the DB table to HTML.
How could we show a specific data from that table. I am able to do the search by "id" and "string value".
If we type the id or string value to the URL. I got the data, But don't understand to show it in a HTML list form.
It would very helpful if you give me a advice to solve it.
Thank you...but can you help me how to show data uniquely by their ID
How do I pass data from controller into a form field in a drop-down format?
To use different table name in model
protected $table = 'Table Name'; -> in model file
i think it will be public...
@@haiderazad8944 no table name should not be public.
@@meghanahiregoudar7830 Ok it may be...but Anil Sir use public...
@@haiderazad8944 okay
nc
ANS
just only inside model class write
public $table ="tablename..";
I usually use protected $table = "Database_name";
How to display those data in descending order?
sir, i am follow your step but why "undefined variable" Smembers ? thanks
Did u get it ? I aldo have same error. Could u help me ?
how to link multiple table in single model?
Hi, any GitHub or code url to refer? Thanks
Plz help me to fix Undefined offset 1 error .There is no error in code.Plz help me
My database not showing I'd , it is Blank down to I'd column
sir, need help!
if I want to print a recent query not all data of the table how it would be possible pls.. reply as soon
You can use the following code to get the last 5 items from the database.
$latest_data = Member::orderBy('id', 'desc')->limit(5)->get();
@@md.ashraful3103 sir, its helpful but i want to show in realtime when I insert data into database not any previous data of table.
@@md.ashraful3103 I don't understand when I want to view post according to their id for example if I hover to post one then the post-id 1 should show only...and not all the posts in the table
@@elinantahomvukye7097 Member::find($id); this will fetch the data of specific id that you will pass in $id variable.
@@AbhishekKumar-bx8gp I didnt understand. Do you mean that you want to get the last record that you inserted? or you mean something else?
to connect with different table public $table = 'TABLE_NAME';
Undefined variable $members
protected $table = 'tablename';
Undefined variable $members
Undefined variable $members
i got the same problem, any solution ?
Hello sir
protected $table='posts';
Undefined variable $members
Undefined variable $members
Undefined variable $members