- Read up on Eloquent here https://laravel.com/docs/5.6/eloquent
- Read about Blade here https://laravel.com/docs/5.6/blade
Jul 16, 2018
4
Level 5
Scenario : in my blade as a news paper category , first item information show big view but other s item ar small show , how can i view data in blade from database? what kind of query ?need to write
how can i view data in blade from database? what kind of query need to write ?
Level 67
Your question isn't clear. The query would be the same, whether it returns a lot of data for a column, or a little. It doesn't matter. The query to get the data is the same.
You'll need to learn some basic laravel stuff.
- the
controlleris the thing that does the querying, not "blade" - The controller passes the data to the
view. - In the view, you render the data.
Please learn the basics of laravel. Here is a very good series that's free. https://laracasts.com/series/laravel-from-scratch-2017
If after watching that, and trying on your own, and you still can't get it to work, then ask the question again and show your code that you tried.
1 like
Please or to participate in this conversation.