Skip to content
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

Support for for MorphTo/MorphToMany/MorphedByMany #45

Open
flxsource opened this issue Nov 27, 2018 · 3 comments
Open

Support for for MorphTo/MorphToMany/MorphedByMany #45

flxsource opened this issue Nov 27, 2018 · 3 comments
Labels
request New feature or request

Comments

@flxsource
Copy link

Similar to the BelongsTo field, it would be useful to create a new resource directly from the relationship panel.

@beliolfa beliolfa added the request New feature or request label Nov 28, 2018
@cnraju
Copy link

cnraju commented Jan 8, 2019

@flxsource Can you please help me how to use BelongsTo in that package...
i am using
```
Row::make('lineitems', [
Number::make('Quantity')
->fieldClasses('w-full px-8 py-6')
->hideLabelInForms()->rules('required'),
BelongsTo::make('Product')->fieldClasses('w-full px-8 py-6')
->hideLabelInForms(),
Number::make('Price')
->fieldClasses('w-full px-8 py-6')
->hideLabelInForms(),
])->fieldClasses('w-full px-8 py-6')
->labelClasses('w-1/5 px-8 py-6')->hideLabelInForms()->addRowText('Add Product'),


giving me error Undefine Index :fields

@thinckx
Copy link

thinckx commented May 6, 2019

I could also use this feature - on a belongsToMany relation, to be specific. Is someone working on this? Can I contribute?

@beliolfa
Copy link
Contributor

beliolfa commented May 6, 2019

We are lately busy with client work. We will be happy for sure to take a look in your PR if you could work on it.

Thanks @thinckx !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants