added export items validation

This commit is contained in:
Cihan Şentürk 2024-04-24 18:12:05 +03:00 committed by GitHub
parent 8755745e06
commit 38a0f6711d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -3,10 +3,13 @@
namespace App\Exports\Common\Sheets;
use App\Abstracts\Export;
use App\Http\Requests\Common\ItemTax as Request;
use App\Models\Common\ItemTax as Model;
class ItemTaxes extends Export
{
public $request_class = Request::class;
public function collection()
{
return Model::with('item', 'tax')->collectForExport($this->ids, null, 'item_id');

View File

@ -3,10 +3,13 @@
namespace App\Exports\Common\Sheets;
use App\Abstracts\Export;
use App\Http\Requests\Common\Item as Request;
use App\Models\Common\Item as Model;
class Items extends Export
{
public $request_class = Request::class;
public function collection()
{
return Model::with('category')->collectForExport($this->ids);