You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
744 B
31 lines
744 B
<?php |
|
|
|
namespace Dcat\Admin\OperationLog; |
|
|
|
use Dcat\Admin\Extend\Setting as Form; |
|
use Dcat\Admin\OperationLog\Models\OperationLog; |
|
use Dcat\Admin\Support\Helper; |
|
|
|
class Setting extends Form |
|
{ |
|
public function title() |
|
{ |
|
return $this->trans('log.title'); |
|
} |
|
|
|
protected function formatInput(array $input) |
|
{ |
|
$input['except'] = Helper::array($input['except']); |
|
$input['allowed_methods'] = Helper::array($input['allowed_methods']); |
|
|
|
return $input; |
|
} |
|
|
|
public function form() |
|
{ |
|
$this->tags('except'); |
|
$this->multipleSelect('allowed_methods') |
|
->options(array_combine(OperationLog::$methods, OperationLog::$methods)); |
|
$this->tags('secret_fields'); |
|
} |
|
}
|
|
|