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