25 lines
392 B
PHP
25 lines
392 B
PHP
<?php
|
|
|
|
namespace App\Exports\Settings;
|
|
|
|
use App\Abstracts\Export;
|
|
use App\Models\Setting\Tax as Model;
|
|
|
|
class Taxes extends Export
|
|
{
|
|
public function collection()
|
|
{
|
|
return Model::collectForExport($this->ids);
|
|
}
|
|
|
|
public function fields(): array
|
|
{
|
|
return [
|
|
'name',
|
|
'type',
|
|
'rate',
|
|
'enabled',
|
|
];
|
|
}
|
|
}
|