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(); }
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); }