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,35 @@
<?php
namespace Modules\Admin\Repositories;
use Modules\Admin\Models\Event;
class EventRepository implements EventInterface
{
public function findAll()
{
return Event::get();
}
public function getEventById($EventId)
{
return Event::findOrFail($EventId);
}
public function delete($EventId)
{
Event::destroy($EventId);
}
public function create(array $EventDetails)
{
return Event::create($EventDetails);
}
public function update($EventId, array $newDetails)
{
return Event::where('id', $EventId)->update($newDetails);
}
}