cleaning day
This commit is contained in:
@@ -2,17 +2,24 @@
|
||||
|
||||
namespace App\Repositories\Botanic;
|
||||
|
||||
use App\Exports\Botanic\SpeciesExport;
|
||||
use App\Models\Botanic\Specie;
|
||||
use App\Repositories\Core\Tag;
|
||||
use App\Repositories\Shop\TagGroups;
|
||||
use App\Traits\Model\Basic;
|
||||
use App\Traits\Repository\Imageable;
|
||||
use Maatwebsite\Excel\Facades\Excel;
|
||||
|
||||
class Species
|
||||
{
|
||||
use Basic, Imageable;
|
||||
|
||||
public static function init()
|
||||
{
|
||||
return [
|
||||
'genres' => Genres::getOptions(),
|
||||
'tags_list' => TagGroups::getTreeTags(),
|
||||
];
|
||||
|
||||
}
|
||||
public static function getDescription($id)
|
||||
{
|
||||
return self::get($id)->description ?? '';
|
||||
@@ -62,11 +69,6 @@ class Species
|
||||
return Tag::storeTags($specie, $tags);
|
||||
}
|
||||
|
||||
public static function exportExcel()
|
||||
{
|
||||
return Excel::download(new SpeciesExport(), 'species.xlsx');
|
||||
}
|
||||
|
||||
public static function getModel()
|
||||
{
|
||||
return Specie::query();
|
||||
|
||||
Reference in New Issue
Block a user