/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $input = Input::all();
     $sessionId = Common::checkSessionLogin($input);
     $favorites = CommonFavorite::getFavorite(['model_name' => 'Product', 'follow_id' => $input['user_id'], 'type_favorite' => TYPE_FAVORITE_SAVE]);
     return CommonProduct::returnProduct(array('ids' => $favorites));
 }
 public function listProductUser($id)
 {
     $input = Input::all();
     // $sessionId = Common::checkSessionLogin($input);
     // if($sessionId) {
     // 	$block = Common::checkBlackList($input['user_id'], $id);
     // 	if($block) {
     // 		$isPhone = null;
     // 	} else {
     // 		$isPhone = 1;
     // 	}
     // } else {
     // 	$isPhone = 1;
     // }
     return CommonProduct::returnProduct(array('user_id' => $id, 'status' => ACTIVE));
 }
 public function account($id)
 {
     return CommonProduct::returnProduct(array('user_id' => $id, 'status' => ACTIVE));
 }
Ejemplo n.º 4
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     return CommonProduct::returnProduct(array('status' => ACTIVE));
 }
 public function show($id)
 {
     return CommonProduct::returnProduct(array('category_id' => $id, 'status' => ACTIVE));
 }