paginate(5)->withQueryString(); } public function create(array $data): Subject { return Subject::create($data); } public function update(Model $model, array $data): Subject { $model->update($data); return $model; } public function delete(Model $model): void { $model->delete(); } }