/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $data['results'] = Posts::posts()->get();
     return \View::make('admin.posts.list', $data);
 }
Exemple #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $data['results'] = Posts::posts()->get();
     return response()->json($data);
 }