Exemple #1
0
 public function __construct($id = 0)
 {
     if ($id) {
         parent::__construct('PUT', route('bw.users.groups.update', $id), Model::find($id));
     } else {
         parent::__construct('POST', route('bw.users.groups.store'));
     }
     //
     $this->createForm();
 }
Exemple #2
0
 public function __construct($id = 0)
 {
     //
     $relation_id = request('relation_id');
     //
     if ($id) {
         parent::__construct('PUT', route('bw.relationships.listing.update', $id), Listing::find($id));
     } else {
         parent::__construct('post', route('bw.relationships.listing.store'));
     }
     //
     $this->createForm();
     //
     $this->createPanelsRelationships(Listing::getModel(), $relation_id);
 }