/** * Display a listing of the resource. * * @return Response */ public function index() { if (Input::get('token')) { $user = JWTAuth::parseToken()->authenticate(); return ['sidebar' => [], 'feeds' => Feed::all(), 'self' => $user]; } return response(['error' => 'wheres_the_f***ing_token'], 400); }
public function index() { $feeds = Feed::all(); //dd($feeds); return view('feeds.index', compact('feeds')); }