Support the ongoing development of Laravel.io →
Configuration Input Queues

$userInfo = Client::where('username','=', $request->username)->first();

I want to add the parameter of the phonenumber. For example to check and the phonenumber, not only the username. How could i do that?

Last updated 3 years ago.
0

$userInfo = Client::where([['username','=', $request->username],['phonenumber',"=","1234567890"]])->first();

I hope this help

Last updated 4 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

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.

© 2025 Laravel.io - All rights reserved.