Skip to content

Commit ef04957

Browse files
authored
Add exception for missing/invalid dateFormat
1 parent e516ac3 commit ef04957

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

system/Exceptions/ModelException.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,9 @@ public static function forNoPrimaryKey(string $modelName)
1010
{
1111
return new static(lang('Database.noPrimaryKey', [$modelName]));
1212
}
13+
14+
public static function forNoDateFormat(string $modelName)
15+
{
16+
return new static(lang('Database.noDateFormat', [$modelName]));
17+
}
1318
}

0 commit comments

Comments
 (0)