Pass new parameters

This commit is contained in:
Ludovic CANDELLIER
2020-08-20 01:12:07 +02:00
parent f0fe594ead
commit 12aff23e00
7 changed files with 95 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Exports\Botanic;
use Illuminate\Contracts\View\View;
use Maatwebsite\Excel\Concerns\FromQuery;
use Maatwebsite\Excel\Concerns\Exportable;
use App\Models\Botanic\Family;
class FamiliesExport implements FromQuery
{
use Exportable;
public function query()
{
return Family::query();
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Exports\Botanic;
use Illuminate\Contracts\View\View;
use Maatwebsite\Excel\Concerns\FromQuery;
use Maatwebsite\Excel\Concerns\Exportable;
use App\Models\Botanic\Genre;
class GenresExport implements FromQuery
{
use Exportable;
public function query()
{
return Genre::query();
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Exports\Botanic;
use Illuminate\Contracts\View\View;
use Maatwebsite\Excel\Concerns\FromQuery;
use Maatwebsite\Excel\Concerns\Exportable;
use App\Models\Botanic\Specie;
class SpeciesExport implements FromQuery
{
use Exportable;
public function query()
{
return Specie::query();
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Exports\Botanic;
use Illuminate\Contracts\View\View;
use Maatwebsite\Excel\Concerns\FromQuery;
use Maatwebsite\Excel\Concerns\Exportable;
use App\Models\Botanic\Variety;
class VarietiesExport implements FromQuery
{
use Exportable;
public function query()
{
return Variety::query();
}
}