/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show() { $info = new Item(); $info->setTable($this->getLoginUsername()); //$info->setTable($this->getLoginUsername()); $list = $info->all($this->getLoginUsername(), array('taskname', 'deadline', 'description', 'important')); return view('auth.profile')->with(array('username' => $this->getLoginUsername(), 'list' => $list)); }