Passer le tableau du contrôleur Laravel avec compact
// Its work For me
return view('site.dashboard.user_profile')
->with(compact('visits','user_details'));
Nipun
// Its work For me
return view('site.dashboard.user_profile')
->with(compact('visits','user_details'));