File manager - Edit - /home/linknsbh/cecil-hotel.net/platform/plugins/hotel/src/Forms/AmenityForm.php
Back
<?php namespace Botble\Hotel\Forms; use Botble\Base\Enums\BaseStatusEnum; use Botble\Base\Forms\FormAbstract; use Botble\Hotel\Http\Requests\AmenityRequest; use Botble\Hotel\Models\Amenity; class AmenityForm extends FormAbstract { public function setup(): void { $this ->setupModel(new Amenity()) ->setValidatorClass(AmenityRequest::class) ->withCustomFields() ->add('name', 'text', [ 'label' => trans('core/base::forms.name'), 'required' => true, 'attr' => [ 'placeholder' => trans('core/base::forms.name_placeholder'), 'data-counter' => 120, ], ]) ->add('icon', 'themeIcon', [ 'label' => trans('plugins/hotel::amenity.icon'), 'default_value' => 'fa fa-check', ]) ->add('status', 'customSelect', [ 'label' => trans('core/base::tables.status'), 'required' => true, 'attr' => [ 'class' => 'form-control select-full', ], 'choices' => BaseStatusEnum::labels(), ]) ->setBreakFieldPoint('status'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.52 |
proxy
|
phpinfo
|
Settings