Fixes for checking valid project

This commit is contained in:
David Bomba 2021-12-17 10:10:12 +11:00
parent 1d8e5a33bf
commit 2285bd8030
2 changed files with 5 additions and 4 deletions

View File

@ -54,10 +54,10 @@ class QueryLogging
// info("Query count = {$count}"); // info("Query count = {$count}");
if($count > 175){ // if($count > 175){
nlog("Query count = {$count}"); nlog("Query count = {$count}");
nlog($queries); // nlog($queries);
} // }
$ip = ''; $ip = '';

View File

@ -44,6 +44,7 @@ class ShowStatementRequest extends FormRequest
public function client(): Client public function client(): Client
{ {
return auth('contact')->user()->client; return Client::withTrashed()->without('contacts.company', 'documents', 'gateway_tokens')->where('id', auth('contact')->user()->client_id)->first();
// return auth('contact')->user()->client;
} }
} }