पेज · Laravilt
CreateAction
Create new records via modal or navigation
Create new records via a modal form or by navigating to a create page.
Basic Usage
php
Default Configuration
- Icon: Plus
- Color: primary
- Auto-detects context (modal vs navigation)
Modal Creation
php
Custom Creation Logic
php
Custom Modal Settings
php
Slide Over Modal
php
Success Redirect
php
API Reference
| Method | Parameters | Description |
|---|---|---|
make() | ?string $name | Create action |
model() | string | Set model class |
form() | array | Form schema |
using() | Closure | Custom creation logic |
modalHeading() | string | Modal title |
modalWidth() | string | Modal width |
slideOver() | — | Use slide-over |
successRedirectUrl() | string|Closure | Redirect after create |