public static function getOrdersByUserId($id) { $items = DB::select(DB::raw("SELECT *,orders.id as id,shops.id as did,shop_data.id as ddid,shop_data.name as shopName FROM orders,shop_data,shops WHERE shops.id_owner = :id AND shops.id = shop_data.id_shop AND shops.id = orders.id_shop ")->paginate(15), [ "id" => $id ]); return $items; } i call this function but is giving me error
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire