1
0
Fork 0
wow-raid-bingo/app/Http/Controllers/Admin/CardController.php

37 lines
941 B
PHP

<?php
namespace App\Http\Controllers\Admin;
use App\Models\Card;
use App\Http\Livewire\Form\CardForm;
class CardController extends BaseController
{
protected $_datatable = [
'model' => Card::class,
'default_sort' => 'id',
'route_create' => 'admin.card.create',
'route_edit' => 'admin.card.edit',
'delete_enabled' => true,
'restore_enabled' => true,
'columns' => [
'id' => '#',
'body' => 'Body',
'subject' => 'Subject',
'subject_type' => 'Subject Type',
'jackpot' => 'Jackpot',
'raid.name' => 'Raid',
],
'sort_columns' => [
'id' => 'id',
'body' => 'body',
'subject' => ['character.name', 'class', 'role'],
'raid.name' => 'raid.name',
]
];
static public function getForm(): string
{
return CardForm::class;
}
}