fix tests

This commit is contained in:
harshjagad20
2022-01-10 19:02:49 +05:30
parent 54f76f7cbe
commit 9eae813c24
11 changed files with 67 additions and 45 deletions

View File

@ -46,7 +46,7 @@ class ExpensesController extends Controller
public function show(Company $company, $id)
{
$expense = $company->expenses()
->whereCustomer(Auth::guard('customer')->id())
->whereUser(Auth::guard('customer')->id())
->where('id', $id)
->first();