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