user()->isAdmin(); } public function rules() { $rules = []; return $rules; } public function sanitize() { $input = $this->all(); //$input['id'] = $this->encodePrimaryKey($input['id']); //$this->replace($input); return $this->all(); } }