montolcsb
8 months ago

Call to undefined method Illuminate\Database\Query\Builder::on()

Posted 8 months ago by montolcsb

$user = Users::where(function($q) use ($username) {

$q->on('username', $username)

->orWhere('email', $username);

})

->where('isactive', 1);

Please sign in or create an account to participate in this conversation.