cleaning day
This commit is contained in:
@@ -2,20 +2,20 @@
|
||||
|
||||
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()
|
||||
public static function init()
|
||||
{
|
||||
return Excel::download(new GenresExport(), 'genres.xlsx');
|
||||
return [
|
||||
'families' => Families::getOptions(),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
public static function getModel()
|
||||
{
|
||||
return Genre::query();
|
||||
|
||||
Reference in New Issue
Block a user