Skip to content

Commit aa0051a

Browse files
authored
Update README.md
1 parent 36dbd77 commit aa0051a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,3 +222,20 @@ public function panel(Panel $panel): Panel
222222
])
223223
}
224224
```
225+
226+
### Forcing all resources to use modals
227+
228+
Quick create will automatically determine if it should redirect to a create page or to show the form in a modal based on the resource. If you prefer to force all items to be show in a modal you can do so with the `alwaysShowModal()` modifier.
229+
230+
```php
231+
use Awcodes\FilamentQuickCreate\QuickCreatePlugin;
232+
233+
public function panel(Panel $panel): Panel
234+
{
235+
return $panel
236+
->plugins([
237+
QuickCreatePlugin::make()
238+
->alwaysShowModal(),
239+
])
240+
}
241+
```

0 commit comments

Comments
 (0)