File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -5,21 +5,21 @@ weight: 7
5
5
6
6
## Use Custom Designer
7
7
8
- The trait ` Designer ` is the one responsible for presenting the form in the frontend, and now you can customize it to your liking.
8
+ The class ` Designer ` is the one responsible for presenting the form in the frontend, and now you can customize it to your liking.
9
9
10
10
> ** Note** \
11
11
> This is an advanced feature; please use it only when necessary since you have to mainline it manually with every update for Bolt.
12
12
13
- ### First, copy the trait to your app
13
+ ### First, copy the class to your app
14
14
15
- Copy the trait from ` \LaraZeus\Bolt\Concerns ` to your app, lets say: ` \App\Zeus\Bolt\Concerns `
15
+ Copy the class from ` \LaraZeus\Bolt\Facades ` to your app, lets say: ` \App\Zeus\Bolt\Classes `
16
16
17
- ### Call the trait in a service provider
17
+ ### Call the class in a service provider
18
18
19
19
In your register method of your ` AppServiceProvider ` add the following:
20
20
21
21
``` php
22
- \LaraZeus\Bolt\Filament\Resources\FormResource::getBoltFormSchemaUsing(fn(): array => \App\Zeus\Bolt\Concerns \Designer::getMainFormSchema());
22
+ \LaraZeus\Bolt\Filament\Resources\FormResource::getBoltFormSchemaUsing(fn(): array => \App\Zeus\Bolt\Facades \Designer::getMainFormSchema());
23
23
```
24
24
25
25
You're done. Customize the form builder to fit your needs. Remember to keep an eye on any changes in future updates so that you avoid breaking changes.
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace LaraZeus \Bolt \Concerns ;
3
+ namespace LaraZeus \Bolt \Facades ;
4
4
5
5
use Filament \Forms \Components \Grid ;
6
6
use Filament \Forms \Components \Section ;
9
9
use Filament \Forms \Components \Wizard ;
10
10
use Filament \Forms \Components \Wizard \Step ;
11
11
use Filament \Forms \Get ;
12
- use LaraZeus \Bolt \Facades \Bolt ;
13
- use LaraZeus \Bolt \Facades \Extensions ;
14
12
use LaraZeus \Bolt \Models \Form ;
15
13
use LaraZeus \Bolt \Models \Section as ZeusSection ;
16
14
Original file line number Diff line number Diff line change 7
7
use Illuminate \Support \Arr ;
8
8
use Illuminate \Support \Facades \Mail ;
9
9
use Illuminate \View \View ;
10
- use LaraZeus \Bolt \Concerns \Designer ;
11
10
use LaraZeus \Bolt \Events \FormMounted ;
12
11
use LaraZeus \Bolt \Events \FormSent ;
12
+ use LaraZeus \Bolt \Facades \Designer ;
13
13
use LaraZeus \Bolt \Facades \Extensions ;
14
14
use LaraZeus \Bolt \Models \Form ;
15
15
use Livewire \Component ;
You can’t perform that action at this time.
0 commit comments