We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 65fe98e + 0ebb170 commit 23dcb4cCopy full SHA for 23dcb4c
src/HasSlug.php
@@ -190,7 +190,7 @@ protected function generateSubstring($slugSourceString)
190
return substr($slugSourceString, 0, $this->slugOptions->maximumLength);
191
}
192
193
- public static function findBySlug(string $slug, array $columns = ['*'], callable $additionalQuery = null)
+ public static function findBySlug(string $slug, array $columns = ['*'], ?callable $additionalQuery = null)
194
{
195
$modelInstance = new static();
196
$field = $modelInstance->getSlugOptions()->slugField;
0 commit comments