Learner\Repositories\Eloquent\UserRepository::findAllActivePaginated PHP Method

findAllActivePaginated() public method

Find all active users paginated.
public findAllActivePaginated ( integer $perPage = 50 ) : Illuminate\Database\Eloquent\Collection | User[]
$perPage integer
return Illuminate\Database\Eloquent\Collection | Learner\Models\User[]
    public function findAllActivePaginated($perPage = 50)
    {
        return $this->model->with(self::$relations)->where('is_active', true)->orderBy('created_at', 'desc')->paginate($perPage);
    }