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.
1 parent 61a77bf commit bbca887Copy full SHA for bbca887
src/Models/Url.php
@@ -53,7 +53,7 @@ public function related(): MorphTo
53
public static function makeSlug(string $slug, Model $model): string
54
{
55
if (! $slug) {
56
- throw new Exception('Slug cannot be empty');
+ throw new Exception('Slug cannot be empty for model ' . get_class($model). ' with id ' . $model->getQueueableId());
57
}
58
$where = $model->only(['id', 'type']);
59
$where['type'] = $model::class;
0 commit comments