X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/restate/platform/core/acl/src/Forms
home
/
gfecatvj
/
sites
/
restate
/
platform
/
core
/
acl
/
src
/
Forms
/
📁
..
📄
PasswordForm.php
(2.25 KB)
📄
ProfileForm.php
(2.47 KB)
📄
RoleForm.php
(4.33 KB)
📄
UserForm.php
(4.69 KB)
Editing: ProfileForm.php
<?php namespace Botble\ACL\Forms; use Botble\ACL\Http\Requests\UpdateProfileRequest; use Botble\ACL\Models\User; use Botble\Base\Forms\FormAbstract; class ProfileForm extends FormAbstract { /** * {@inheritDoc} */ public function buildForm() { $this ->setupModel(new User) ->setFormOption('template', 'core/base::forms.form-no-wrap') ->setFormOption('id', 'profile-form') ->setFormOption('class', 'row') ->setValidatorClass(UpdateProfileRequest::class) ->withCustomFields() ->add('first_name', 'text', [ 'label' => trans('core/acl::users.info.first_name'), 'label_attr' => ['class' => 'control-label required'], 'attr' => [ 'data-counter' => 30, ], 'wrapper' => [ 'class' => $this->formHelper->getConfig('defaults.wrapper_class') . ' col-md-6', ], ]) ->add('last_name', 'text', [ 'label' => trans('core/acl::users.info.last_name'), 'label_attr' => ['class' => 'control-label required'], 'attr' => [ 'data-counter' => 30, ], 'wrapper' => [ 'class' => $this->formHelper->getConfig('defaults.wrapper_class') . ' col-md-6', ], ]) ->add('username', 'text', [ 'label' => trans('core/acl::users.username'), 'label_attr' => ['class' => 'control-label required'], 'attr' => [ 'data-counter' => 30, ], 'wrapper' => [ 'class' => $this->formHelper->getConfig('defaults.wrapper_class') . ' col-md-6', ], ]) ->add('email', 'text', [ 'label' => trans('core/acl::users.email'), 'label_attr' => ['class' => 'control-label required'], 'attr' => [ 'placeholder' => trans('core/acl::users.email_placeholder'), 'data-counter' => 60, ], 'wrapper' => [ 'class' => $this->formHelper->getConfig('defaults.wrapper_class') . ' col-md-6', ], ]) ->setActionButtons(view('core/acl::users.profile.actions')->render()); } }
Upload File
Create Folder