Description
Option to generate Create/Edit forms in modals instead of separate pages.
Proposed Syntax
php artisan crudify:generate Product --fields="name:string" --modal-forms
Behavior
Benefits
- Faster UX - no page reloads
- Context preserved - filters/search stay intact
- Mobile-friendly
Example Component
class Index extends Component
{
public bool $showModal = false;
public ?Product $editingProduct = null;
public function create(): void
{
$this->editingProduct = null;
$this->showModal = true;
}
public function edit(Product $product): void
{
$this->editingProduct = $product;
$this->showModal = true;
}
}
Description
Option to generate Create/Edit forms in modals instead of separate pages.
Proposed Syntax
php artisan crudify:generate Product --fields="name:string" --modal-formsBehavior
/createor/{id}/editroutes neededBenefits
Example Component