X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/restate/platform/core/base/src/Providers
home
/
gfecatvj
/
sites
/
restate
/
platform
/
core
/
base
/
src
/
Providers
/
📁
..
📄
BaseServiceProvider.php
(7.47 KB)
📄
BreadcrumbsServiceProvider.php
(2.83 KB)
📄
CommandServiceProvider.php
(294 B)
📄
ComposerServiceProvider.php
(2.2 KB)
📄
EventServiceProvider.php
(1.47 KB)
📄
FormServiceProvider.php
(3.75 KB)
📄
MailConfigServiceProvider.php
(1.87 KB)
Editing: FormServiceProvider.php
<?php namespace Botble\Base\Providers; use Form; use Illuminate\Support\ServiceProvider; class FormServiceProvider extends ServiceProvider { public function boot() { Form::component('mediaImage', 'core/base::forms.partials.image', [ 'name', 'value' => null, 'attributes' => [], ]); Form::component('mediaFile', 'core/base::forms.partials.file', [ 'name', 'value' => null, 'attributes' => [], ]); Form::component('modalAction', 'core/base::forms.partials.modal', [ 'name', 'title', 'type' => null, 'content' => null, 'action_id' => null, 'action_name' => null, 'modal_size' => null, ]); Form::component('helper', 'core/base::forms.partials.helper', ['content']); Form::component('onOff', 'core/base::forms.partials.on-off', [ 'name', 'value' => false, 'attributes' => [], ]); /** * Custom checkbox * Every checkbox will not have the same name */ Form::component('customCheckbox', 'core/base::forms.partials.custom-checkbox', [ /** * @var array $values * @template: [ * [string $name, string $value, string $label, bool $selected, bool $disabled], * [string $name, string $value, string $label, bool $selected, bool $disabled], * [string $name, string $value, string $label, bool $selected, bool $disabled], * ] */ 'values', ]); /** * Custom radio * Every radio in list must have the same name */ Form::component('customRadio', 'core/base::forms.partials.custom-radio', [ /** * @var string $name */ 'name', /** * @var array $values * @template: [ * [string $value, string $label, bool $disabled], * [string $value, string $label, bool $disabled], * [string $value, string $label, bool $disabled], * ] */ 'values', /** * @var string|null $selected */ 'selected' => null, ]); Form::component('error', 'core/base::forms.partials.error', [ 'name', 'errors' => null, ]); Form::component('editor', 'core/base::forms.partials.editor', [ 'name', 'value' => null, 'attributes' => [], ]); Form::component('ckeditor', 'core/base::forms.partials.ckeditor', [ 'name', 'value' => null, 'attributes' => [], ]); Form::component('tinymce', 'core/base::forms.partials.tinymce', [ 'name', 'value' => null, 'attributes' => [], ]); Form::component('customSelect', 'core/base::forms.partials.custom-select', [ 'name', 'list' => [], 'selected' => null, 'selectAttributes' => [], 'optionsAttributes' => [], 'optgroupsAttributes' => [], ]); Form::component('googleFonts', 'core/base::forms.partials.google-fonts', [ 'name', 'selected' => null, 'selectAttributes' => [], 'optionsAttributes' => [], ]); Form::component('customColor', 'core/base::forms.partials.color', [ 'name', 'value' => null, 'attributes' => [], ]); } }
Upload File
Create Folder