Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
afsakar committed Aug 9, 2024
1 parent d659174 commit f19b566
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .phpunit.cache/test-results
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"pest_2.35.0","defects":[],"times":{"P\\Tests\\ExampleTest::__pest_evaluable_it_can_test":0.001,"P\\Tests\\ArchTest::__pest_evaluable_it_will_not_use_debugging_functions":0.152}}
{"version":"pest_2.35.0","defects":[],"times":{"P\\Tests\\ExampleTest::__pest_evaluable_it_can_test":0.005,"P\\Tests\\ArchTest::__pest_evaluable_it_will_not_use_debugging_functions":0.176}}
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,19 @@ You can install the package via composer:
composer require afsakar/filament-form-maker
```

You can publish and run the migrations with:
Form Maker uses Spatie Media Library package. If you haven't published the media table yet, you can publish it with:

```bash
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="medialibrary-migrations"
```

If you haven't published the notifications table yet, you can publish it with:

```bash
php artisan notifications:table
```

Then finally you need to publish main tables and run the migrations with:

```bash
php artisan vendor:publish --tag="filament-form-maker-migrations"
Expand Down
4 changes: 2 additions & 2 deletions src/Fields/FieldBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ protected static function makeSections($builder): Forms\Components\Group
protected static function placeholder(?string $title): Forms\Components\Placeholder
{
return Forms\Components\Placeholder::make('title')
->label(new HtmlString('<div class="afsakar-section-title flex items-center relative gap-[50px] sm:gap-20 pt-30">
<p class="text text-[20px] md:text-[18px] sm:text-[16px] leading-tight text-secondary font-bold w-fit relative z-2 whitespace-nowrap">' . $title . '</p>
->label(new HtmlString('<div class="afsakar-section-title flex items-center relative gap-[50px] sm:gap-20">
<p class="text text-[20px] md:text-[18px] sm:text-[16px] leading-tight font-bold w-fit relative z-2">' . $title . '</p>
</div>'))
->columnSpanFull()
->hidden(! $title)
Expand Down
4 changes: 0 additions & 4 deletions src/Livewire/FormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ public function form(Forms\Form $form): Forms\Form
return $form
->schema([
FieldBuilder::make($this->builderModel),
Forms\Components\Hidden::make('terms')
->default(false)
->rule(['accepted'])
->dehydrated(false),
])
->statePath('fields');
}
Expand Down

0 comments on commit f19b566

Please sign in to comment.