first commit
This commit is contained in:
35
Modules/Admin/app/Repositories/ProgressStatusRepository.php
Normal file
35
Modules/Admin/app/Repositories/ProgressStatusRepository.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user