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

findNotActivePaginated() public method

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