| Server IP : 139.59.63.204 / Your IP : 216.73.217.62 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu-s-1vcpu-1gb-blr1-01 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 15:09:20 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/abyogasms.com/vendor/filament/forms/src/ |
Upload File : |
<?php
namespace Filament\Forms;
use Filament\Forms\Components\TableSelect\Livewire\TableSelectLivewireComponent;
use Filament\Forms\Testing\TestsFormComponentActions;
use Filament\Forms\Testing\TestsForms;
use Filament\Support\Assets\AlpineComponent;
use Filament\Support\Facades\FilamentAsset;
use Illuminate\Filesystem\Filesystem;
use Livewire\Features\SupportTesting\Testable;
use Livewire\Livewire;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
class FormsServiceProvider extends PackageServiceProvider
{
public function configurePackage(Package $package): void
{
$package
->name('filament-forms')
->hasCommands([
Commands\MakeRichContentCustomBlockCommand::class,
Commands\MakeFieldCommand::class,
Commands\MakeFormCommand::class,
Commands\MakeLivewireFormCommand::class,
])
->hasTranslations()
->hasViews();
}
public function packageBooted(): void
{
FilamentAsset::register([
AlpineComponent::make('checkbox-list', __DIR__ . '/../dist/components/checkbox-list.js'),
AlpineComponent::make('code-editor', __DIR__ . '/../dist/components/code-editor.js'),
AlpineComponent::make('color-picker', __DIR__ . '/../dist/components/color-picker.js'),
AlpineComponent::make('date-time-picker', __DIR__ . '/../dist/components/date-time-picker.js'),
AlpineComponent::make('file-upload', __DIR__ . '/../dist/components/file-upload.js'),
AlpineComponent::make('key-value', __DIR__ . '/../dist/components/key-value.js'),
AlpineComponent::make('markdown-editor', __DIR__ . '/../dist/components/markdown-editor.js'),
AlpineComponent::make('rich-editor', __DIR__ . '/../dist/components/rich-editor.js'),
AlpineComponent::make('select', __DIR__ . '/../dist/components/select.js'),
AlpineComponent::make('slider', __DIR__ . '/../dist/components/slider.js'),
AlpineComponent::make('tags-input', __DIR__ . '/../dist/components/tags-input.js'),
AlpineComponent::make('textarea', __DIR__ . '/../dist/components/textarea.js'),
], 'filament/forms');
if ($this->app->runningInConsole()) {
foreach (app(Filesystem::class)->files(__DIR__ . '/../stubs/') as $file) {
$this->publishes([
$file->getRealPath() => base_path("stubs/filament/{$file->getFilename()}"),
], 'filament-stubs');
}
}
Livewire::component('table-select', TableSelectLivewireComponent::class);
Testable::mixin(new TestsForms);
Testable::mixin(new TestsFormComponentActions);
}
}