In your controller you can use:
$member=Member::all();
return view('Dashboard', ['data' => $member]);
or
$data=Member::all();
return view('Dashboard', compact('data'));
and make sure your view name is correct and also your variable $data in your view blade is same as it's in controller.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community