24 lines
413 B
PHP
24 lines
413 B
PHP
<?php
|
|
|
|
namespace App\Repositories\Botanic;
|
|
|
|
use App\Exports\Botanic\GenresExport;
|
|
use App\Models\Botanic\Genre;
|
|
use App\Traits\Model\Basic;
|
|
use Maatwebsite\Excel\Facades\Excel;
|
|
|
|
class Genres
|
|
{
|
|
use Basic;
|
|
|
|
public static function exportExcel()
|
|
{
|
|
return Excel::download(new GenresExport(), 'genres.xlsx');
|
|
}
|
|
|
|
public static function getModel()
|
|
{
|
|
return Genre::query();
|
|
}
|
|
}
|