In Laravel and Eloquent, you can use ManyToMany-Relations with a pivot table. The problem in my case is the automatic id of the summary line. Can I change the way I create an identifier? I want to use the UUID in this regard.
For other objects, you can simply implement this behavior in the Model, but there is no model for summary objects.
Did I miss something?
, , , attach(), sync(), / .
attach()
sync()
, $user->roles()->attach($role, array('id' => $uuid));
$user->roles()->attach($role, array('id' => $uuid));
, , id .
id
, id , , - - , 2, .
Source: https://habr.com/ru/post/1546985/More articles:Phonegap camera damage on android 4.1.2, samsung galaxy s3, HTC - androidWhy is my user border applied to all components? - javaiOS8 - Single Widget for Multiple Purpose - iosSystem.Messaging.MessageQueueException. The external component threw an exception. - c #How to wait until copy action ends in Yeoman - javascriptwhy is this loop detection code not working correctly? - image-processingInstall local documentation for android studio 0.8 - androidHow to display Android notifications in a dialog box when an application is running and displayed - androidInvalid element passed activity from widget - androidPassing JSON objects in a GEST HTTP GET request using Spring MVC - javaAll Articles