<?php namespace Modules\Admin\Repositories; use Modules\Admin\Models\ProgressStatus; class ProgressStatusRepository implements ProgressStatusInterface { public function findAll() { return ProgressStatus::get(); } public function getProgressStatusById($progressStatusId) { return ProgressStatus::findOrFail($progressStatusId); } public function delete($progressStatusId) { ProgressStatus::destroy($progressStatusId); } public function create(array $progressStatusDetails) { return ProgressStatus::create($progressStatusDetails); } public function update($progressStatusId, array $newDetails) { return ProgressStatus::where('id', $progressStatusId)->update($newDetails); } }