'string', 'user_id' => 'string', 'active' => 'boolean', 'forwards' => 'boolean', 'replies' => 'boolean', 'sends' => 'boolean', 'conditions' => 'array', 'actions' => 'array' ]; /** * Get the user for the rule. */ public function user() { return $this->belongsTo(User::class); } public function deactivate() { $this->update(['active' => false]); } public function activate() { $this->update(['active' => true]); } }