New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nova Create Child Relationship Package #29

Open
julianpoma opened this Issue Sep 10, 2018 · 6 comments

Comments

Projects
None yet
5 participants
@julianpoma

julianpoma commented Sep 10, 2018

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.

image

@cerelli

This comment has been minimized.

cerelli commented Sep 10, 2018

Related to #9

@julianpoma

This comment has been minimized.

julianpoma commented Sep 10, 2018

@dillingham explain how?

@cerelli

This comment has been minimized.

cerelli commented Sep 10, 2018

???
In the same page?
I want to create one page for spatie/laravel-permission.

screenshot_20180910_154443

@julianpoma

This comment has been minimized.

julianpoma commented Sep 10, 2018

@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.

image

@ovvessem

This comment has been minimized.

ovvessem commented Oct 18, 2018

Really like the idea of creating the parent and child in one page!

@voidgraphics

This comment has been minimized.

voidgraphics commented Nov 9, 2018

Yessssssssss we need this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment