Merge pull request #6989 from turbo124/v5-develop

Return early if no client present in the repository
This commit is contained in:
David Bomba 2021-11-21 15:07:21 +11:00 committed by GitHub
commit c36689efec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,7 +176,7 @@ class BaseRepository
if(array_key_exists('client_id', $data))
$model->client_id = $data['client_id'];
$client = Client::where('id', $model->client_id)->withTrashed()->first();
$client = Client::where('id', $model->client_id)->withTrashed()->firstOrFail();
$state = [];