php - Query data in database to show posts
People are also looking for solutions to the problem: php - Symfony/Doctrine/authentication, I can't recover the roles
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.
Find the answer in similar questions on our website.
okay maybe this question not clear but i try to figure out what you want.you can filter what content will show by just add some condition in your loop
Laravel Blade allows to use a helpful set of variable like
When looping, a
$loopvariable will be available inside of your loop. This variable provides access to some useful bits of information such as the current loop index and whether this is the first or last iteration through the loop: