20 lines
377 B
PHP
20 lines
377 B
PHP
<?php
|
|
|
|
namespace App\Services\Setting;
|
|
|
|
use App\Services\SigdCrudService;
|
|
use App\Models\ReferenceUnit;
|
|
|
|
class UnitService extends SigdCrudService
|
|
{
|
|
public function __construct(ReferenceUnit $model)
|
|
{
|
|
parent::__construct($model);
|
|
}
|
|
|
|
public function getCategories()
|
|
{
|
|
return ReferenceUnit::distinct()->rowActive()->pluck('category');
|
|
}
|
|
}
|