Пример #1
0
 /**
  * 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);
 }
Пример #2
0
 public function index()
 {
     $feeds = Feed::all();
     //dd($feeds);
     return view('feeds.index', compact('feeds'));
 }