merge([ 'type' => intval($this->route()->parameter('approach')->type), 'published' => $this->boolean('published') ]); $this->mergePicture('picture'); } /** * Determine if the user is authorized to make this request. * * @return boolean */ public function authorize(): bool { return Gate::check('update', $this->route('approach')); } }