31 lines
669 B
PHP
31 lines
669 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Admin;
|
|
|
|
use App\Models\Raid;
|
|
use App\Http\Livewire\Form\RaidForm;
|
|
|
|
class RaidController extends BaseController
|
|
{
|
|
protected $_datatable = [
|
|
'model' => Raid::class,
|
|
'default_sort' => 'id',
|
|
'route_create' => 'admin.raid.create',
|
|
'route_edit' => 'admin.raid.edit',
|
|
'delete_enabled' => true,
|
|
'restore_enabled' => true,
|
|
'columns' => [
|
|
'id' => '#',
|
|
'name' => 'Name',
|
|
],
|
|
'sort_columns' => [
|
|
'id' => 'id',
|
|
'name' => 'name',
|
|
]
|
|
];
|
|
|
|
static public function getForm() : string
|
|
{
|
|
return RaidForm::class;
|
|
}
|
|
}
|