client api

This commit is contained in:
pbao9
2026-02-11 10:08:39 +07:00
parent 458ad0a4cb
commit d59b2a0840
27 changed files with 4369 additions and 28 deletions
@@ -0,0 +1,22 @@
<?php
namespace App\Repositories\Api\Client;
use App\Models\Customer;
use App\Repositories\Api\BaseApiRepository;
class ClientRepository extends BaseApiRepository implements ClientRepositoryInterface
{
public function getModel()
{
return Customer::class;
}
/**
* Tìm khách hàng theo email
*/
public function findByEmail(string $email)
{
return $this->model->where('email', $email)->first();
}
}