Support the ongoing development of Laravel.io →
Blade Authentication Laravel.io
Last updated by @ajax30 2 years ago.
0

You can apply the same solution as already given to you in this thread.

0

Hello :)

  1. In the articles controller you could extract this part of query in a scope ::where('title', 'like', '%' . $qry . '%') ->orWhere('short_description', 'like', '%' . $qry . '%') ->orWhere('content', 'like', '%' . $qry . '%')

  2. In the blade, you could extract what is inside the foreach in another blade

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Razvan ajax30 Joined 2 Oct 2021

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.