/** * Update list twitter * @throws Exception * @return void */ public function updatedListTwitter() { try { $creator = Session::get('id_user_twitter', null); if ($creator == null) { throw new Exception("Error Processing Request"); } $listTwitter = TList::where('creator', $creator)->get(); foreach ($listTwitter as $item) { $this->storeOrUpdateScreenName($item->screen_name); } } catch (Exception $e) { throw new Exception("Error Processing Request"); } }
public function listTwitter() { $idUserTwitter = Session::get('id_user_twitter', null); if ($idUserTwitter == null) { $message = "Required log in twitter."; $alertClass = "alert-danger"; return redirect()->back()->with(compact('message', 'alertClass')); } $listTwitter = TList::where('creator', $idUserTwitter)->paginate($this->_itemPerPage); return view('websites.listtwitter', compact('listTwitter')); }