/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index($userId) { $panelists = Panelist::where('customer_id', $userId)->paginate(10); return $this->view('partials.panelists.index', compact('panelists')); }