Skip to content

Commit bbca887

Browse files
authored
Update Url.php
Better error handling and debug when problem
1 parent 61a77bf commit bbca887

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/Url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function related(): MorphTo
5353
public static function makeSlug(string $slug, Model $model): string
5454
{
5555
if (! $slug) {
56-
throw new Exception('Slug cannot be empty');
56+
throw new Exception('Slug cannot be empty for model ' . get_class($model). ' with id ' . $model->getQueueableId());
5757
}
5858
$where = $model->only(['id', 'type']);
5959
$where['type'] = $model::class;

0 commit comments

Comments
 (0)