Nova Create Child Relationship Package
The idea of this package is to let you create a new resource and many "child dependent" ones, on a single action. For example, we may have an Invoice that consists on many Invoice Items.
** Invoice.php
public function items()
{
return $this->hasMany(InvoiceItem::class);
}
** InvoiceItem.php
public function invoice()
{
return $this->belongsTo(Invoice::class);
}
When creating a new Invoice, you should be able to add as many "items rows" as you want, and then save the corresponding data on in its own tables (invoices_table and invoice_items_table).
EDIT: This is a gif of what I am looking for. It doesn't have to have those fancy total_price calcs, nor support complex input types: just basic ones like strings, numbers or a boolean.

Related to #9
@dillingham explain how?
??? In the same page? I want to create one page for spatie/laravel-permission.

@dillingham I already know that, and that the reason why I am posting this here. It's a matter of improving the UX and do things quickly.

Really like the idea of creating the parent and child in one page!
Yessssssssss we need this
https://novapackages.com/packages/yassi/nova-nested-form Would work for this purpose considering some style differences
The idea of this package is to let you create a new resource and many "child dependent" ones, on a single action. For example, we may have an Invoice that consists on many Invoice Items.
** Invoice.php public function items() { return $this->hasMany(InvoiceItem::class); }** InvoiceItem.php public function invoice() { return $this->belongsTo(Invoice::class); }When creating a new Invoice, you should be able to add as many "items rows" as you want, and then save the corresponding data on in its own tables (invoices_table and invoice_items_table).
EDIT: This is a gif of what I am looking for. It doesn't have to have those fancy total_price calcs, nor support complex input types: just basic ones like strings, numbers or a boolean.
Hello Julian,
Could please explain me how to create the invoice form design like in the above. Thanks