HasMany with Attach #3191
Replies: 11 comments 10 replies
-
|
As @crynobone asked. Here is my flow: Company Z:
Company Y:
At the end of the year Company Y get 2 Cars from Company Z. The company got Car A and Car C. In Nova I need to go to the cars and remove them from the Company Z and attach them to the Company Y. If I go to the company resource I only can create new cars but can't attach them to the resource and I can deattach them. With only 2 Cars it is quite simple but a company may have 30 cars switching at the end of a year it is painful. Is it more understandable @crynobone ? |
Beta Was this translation helpful? Give feedback.
-
|
I think this is mainly useful for quickly editing data. In my example there where some locations. Each location One week later the client has decided which events will be hosted in which location. He has a list with all 10 locations and the events for each location. As the list is sorted for locations he would want to edit a location. But he can only create new events from there and not attach existing ones. The current workflow would be:
The ideal workflow would be:
|
Beta Was this translation helpful? Give feedback.
-
|
Regarding https://github.com/dillingham/nova-attach-many: The readme states that it's a Maybe this can be a workaround for this issue. BUT: It's added to the edit form and not on the detail page where the |
Beta Was this translation helpful? Give feedback.
-
|
Is it correct for me to assume all your requirements set belongs to foreign id as $table->foreignId($parentId)->nullable(); |
Beta Was this translation helpful? Give feedback.
-
|
I still agree this would be a really useful feature too. Imagine if you had a Quote and wanted to attach multiple existing "availabilities" in my case I have about 10,000 At no point would the admin user ever be able to create those availabilities as they are handled by the system. At the moment I'm using an action to attach many.. which is fine but then displaying them the interface isn't as good as the default HasMany table... or anywhere near as useful. I'm not sure why this feature has taken so long so please let me know if we're still missing any crucial information to push it over into a version? |
Beta Was this translation helpful? Give feedback.
-
|
Hello, I have this issue too, I use the Having a way to attach existing specialisms to existing users would be awesome, and not having to create new ones all the time because Nova doesn't allow the |
Beta Was this translation helpful? Give feedback.
-
|
Wow... @taylorotwell slowly but surly i think buying a v4 license was a shot in the foot. besides some other issues, i allready posted here, this also still is not solved, what sense does it make if i cannot attach existing models on a has many relation.... mby u should have a look to a wordPress backend this is made for non programming end users |
Beta Was this translation helpful? Give feedback.
-
|
Same issue here; I have list of activities and simple want to attach them to a project. A project can have multiple activities, a activity can only be attached to one project. Project.php Activity.php I can now edit a activity to connect it to a project, but when I view a project I can only create a new activity instead of attach it to an existing one. |
Beta Was this translation helpful? Give feedback.
-
|
@crynobone Is there a possibility for this to be added in Nova 4? Maybe with another Button next to the Attach button that could be called "Attach existing xyz"? |
Beta Was this translation helpful? Give feedback.
-
|
I dont understand why this basic function, which I need to use on every second resource is not in Laravel Nova. See other discussions and issues, this basic "Attach existing model" feature want hundreds of people... |
Beta Was this translation helpful? Give feedback.
-
|
OK, I was wondering how to make it happen, so basically after reading the closed issue (without explanation) I ended up here. This is a common case. @taylorotwell care to let us know what do you think about that request? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Moving the discussion from #520 to here
Beta Was this translation helpful? Give feedback.
All reactions