first commit

This commit is contained in:
Sampanna Rimal
2024-08-27 17:48:06 +05:45
commit 53c0140f58
10839 changed files with 1125847 additions and 0 deletions

View File

@ -0,0 +1,35 @@
<?php
namespace Modules\Office\Repositories;
use Modules\Office\Models\GeneratorLogBook;
class GeneratorLogBookRepository implements GeneratorLogBookInterface
{
public function findAll()
{
return GeneratorLogBook::get();
}
public function getGeneratorLogBookById($generatorLogBookId)
{
return GeneratorLogBook::findOrFail($generatorLogBookId);
}
public function delete($generatorLogBookId)
{
GeneratorLogBook::destroy($generatorLogBookId);
}
public function create(array $generatorLogBookDetails)
{
return GeneratorLogBook::create($generatorLogBookDetails);
}
public function update($generatorLogBookId, array $newDetails)
{
return GeneratorLogBook::where('id', $generatorLogBookId)->update($newDetails);
}
}