update deploy

This commit is contained in:
bulut
2026-03-27 10:41:54 +03:00
parent 69d19c0176
commit 6f6448aa06
422 changed files with 37956 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<?php
namespace App\Repositories\Contracts;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Pagination\LengthAwarePaginator;
/**
* @template T of Model
*/
interface BaseRepositoryInterface
{
/**
* @param array<string, mixed> $filters
* @return LengthAwarePaginator<int, T>
*/
public function paginate(array $filters = [], int $perPage = 15): LengthAwarePaginator;
/**
* @return T|null
*/
public function findById(int $id): ?Model;
/**
* @param array<string, mixed> $data
* @return T
*/
public function create(array $data): Model;
/**
* @param array<string, mixed> $data
* @return T
*/
public function update(Model $model, array $data): Model;
public function delete(Model $model): bool;
}