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 5ea0264 commit 24426b6Copy full SHA for 24426b6
laravel/src/SyncableModelHelper.php
@@ -3,7 +3,7 @@
3
namespace JamesWildDev\ReactNativeAppHelpers;
4
5
use Illuminate\Database\Eloquent\ModelNotFoundException;
6
-use Illuminate\Validation\UnauthorizedException;
+use Illuminate\Auth\Access\AuthorizationException;
7
8
/**
9
* Helpers for working with syncable models.
@@ -77,7 +77,7 @@ static function upsert(
77
78
79
if ($query->where('uuid', $uuid)->exists()) {
80
- throw new UnauthorizedException();
+ throw new AuthorizationException();
81
} else {
82
return null;
83
}
0 commit comments