reupload
This commit is contained in:
37
app/Repositories/System/Payments/PaymentTypeRepository.php
Normal file
37
app/Repositories/System/Payments/PaymentTypeRepository.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\System\Payments;
|
||||
|
||||
use App\Models\System\Settings\Payments\PaymentType;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
class PaymentTypeRepository
|
||||
{
|
||||
protected string $model;
|
||||
|
||||
protected $queryBuilder;
|
||||
|
||||
/**
|
||||
* Payment Type Repository
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->model = PaymentType::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* Syntatic sugar for new class
|
||||
*/
|
||||
public static function make(): self
|
||||
{
|
||||
return new self;
|
||||
}
|
||||
|
||||
/**
|
||||
* Pluck data
|
||||
*/
|
||||
public function pluck(): Collection|array
|
||||
{
|
||||
return PaymentType::pluck('name', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user