first change

This commit is contained in:
2025-07-27 17:40:56 +05:45
commit f8b9a6725b
3152 changed files with 229528 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
<?php
namespace Modules\Leave\Repositories;
use Modules\Leave\Models\LeaveBalance;
class LeaveBalanceRepository implements LeaveBalanceInterface
{
public function pluck()
{
return LeaveBalance::pluck('name', 'id');
}
public function findAll()
{
return LeaveBalance::get();
}
public function create(array $LeaveBalanceDetails)
{
return LeaveBalance::create($LeaveBalanceDetails);
}
public function update($LeaveBalanceId, array $newDetails)
{
return LeaveBalance::where('id', $LeaveBalanceId)->update($newDetails);
}
public function where(array $filter)
{
return LeaveBalance::where($filter);
}
public function delete($LeaveBalanceId)
{
LeaveBalance::destroy($LeaveBalanceId);
}
}