user()->can('edit', $this->client); //return true; // return ! auth()->user(); //todo permissions } public function sanitize() { $input = $this->all(); //$input['id'] = $this->encodePrimaryKey($input['id']); //$this->replace($input); return $this->all(); } }