public static function findByUsername($username) { return static::where(compact('username'))->first(); }