More updates for laravel 11
This commit is contained in:
@@ -13,6 +13,7 @@ trait SingleOrFail
|
||||
private static function bootSingleOrFail(): void
|
||||
{
|
||||
// When a query should return 1 object, or FAIL if it doesnt
|
||||
// @deprecated use sole()
|
||||
Builder::macro('singleOrFail',function () {
|
||||
$result = $this->get();
|
||||
|
||||
|
Reference in New Issue
Block a user