public function getListarfilesangular() { $id_user = 1; //;Auth::user()->id; $userName = '******'; //Auth::user()->username; $model = new Archivo(); $files = $model->where('user_id', '=', $id_user)->where('estado', '=', 0)->get(); return Response::json(array('files' => $files, 'userName' => $userName)); }