public function authorize() { $id = $this->route('matter'); return Matter::where('id', $id)->exists(); }