Is this working ?
public function getUserByUsername($username)
{
return User::where('username', '=', $username)->firstOrFail();
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community