name != null ? $this->name : Str::humanize($this); } public function uriKey() { return Str::slug($this->name(), '-', null); } public function toJsonSerialize() { return [ 'name' => $this->name(), 'uriKey' => $this->uriKey() ]; } public static function query(LensIndexRequest $request, $query){ return $query; } }