FleetCart/Modules/Account/Http/Controllers/AccountDashboardController.php
2023-12-03 14:07:47 +00:00

22 lines
442 B
PHP

<?php
namespace Modules\Account\Http\Controllers;
use Illuminate\Http\Response;
class AccountDashboardController
{
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
return view('public.account.dashboard.index', [
'account' => auth()->user(),
'recentOrders' => auth()->user()->recentOrders(5),
]);
}
}