Support the ongoing development of →
Blade Artisan Authorization
Last updated by @ajax30 4 months ago.

Since they both have a name column, MySql doesn't know which to use. Use the alias because your query doesn't specify which alias to use for the name column. You can update your query like

->where('', 'like', '%' . $query . '%')
Solution selected by @ajax30

@faisalfayazkhan Please help me with this question too. Thanks!


Sign in to participate in this thread!

Full Stack Europe

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.

© 2022 - All rights reserved.