mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-25 02:10:39 +00:00
controller refactoring part 17
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user