$shelfSlug = $matches[1];
/** @var ?Bookshelf $model */
- $model = Bookshelf::query()->where('slug', '=', $shelfSlug)->first();
+ $model = Bookshelf::query()->where('slug', '=', $shelfSlug)->first(['id']);
return $model;
}
-}
\ No newline at end of file
+}