Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Eloquent relations #1

Open
nam-co opened this issue Jun 12, 2018 · 5 comments
Open

Eloquent relations #1

nam-co opened this issue Jun 12, 2018 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@nam-co
Copy link

nam-co commented Jun 12, 2018

Hi, thanks for the package, I was wondering if its possible to use relations like BelongTo from other models with this package?

Thank you for your time

@Okipa
Copy link
Owner

Okipa commented Jun 12, 2018

Hello @nam-co, yes, I think it would be possible but it represents something quite complex to setup and to test.
It would demand time and digging into the Eloquent ORM to override the right methods.

What is your use case, needing this to be developed ?

@nam-co
Copy link
Author

nam-co commented Jun 12, 2018

Hi @Okipa thanks for the answer, for example #user->Country->currency, when a countries json file probable doesn't change that much, it makes sense to have a json file

@Okipa
Copy link
Owner

Okipa commented Jun 12, 2018

@nam-co
I will try to implement this when i'll have some time but right now, I am working on an other repository (https://github.com/Okipa/laravel-bootstrap-components).
I would consider merge requests is someone is up to make the relationships working with this package (https://laravel.com/docs/5.6/eloquent-relationships).

@Okipa Okipa added enhancement New feature or request help wanted Extra attention is needed labels Jun 12, 2018
@nam-co
Copy link
Author

nam-co commented Jun 12, 2018

The B4 components look good, I once tried something similar but didn’t put much effort https://github.com/maksuco/b4c/blob/master/README.md , I like yours better, would you able to put css classes and js data- to the echo render?

@Okipa
Copy link
Owner

Okipa commented Jun 12, 2018

You can indeed set class and html attributes to each component with default values in config.
For discussion / features requests about other packages, please open issues in it to keep this issue clean and understandable for eventual contributors ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants