controller refactoring part 17

This commit is contained in:
Peter Papp
2021-07-21 11:20:41 +02:00
parent e0eaf5cede
commit dccf98602d
21 changed files with 370 additions and 94 deletions
@@ -12,8 +12,8 @@ class UserProfileInvoiceController extends Controller
*/
public function __invoke(): InvoiceCollection
{
return new InvoiceCollection(
Auth::user()->invoices()
);
$user = Auth::user()->invoices();
return new InvoiceCollection($user);
}
}