Support the ongoing development of →
Blade Authentication
Last updated by @ajax30 1 year ago.

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


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


Sign in to participate in this thread!


Your banner here too?

Razvan ajax30 Joined 2 Oct 2021


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

Your logo here?

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

© 2024 - All rights reserved.