Shopify Plan Query Service (Queries/Plan.php)

laravel-shopify · src/Storage/Queries/Plan.php · php · MIT
crm, integration, database, payments, fw:laravel

Handles database queries for Shopify subscription plans within a Laravel application. Use this to retrieve plan details and associated model data.

// Source: https://github.com/gnikyt/laravel-shopify | License: MIT | Copyright 2020 Tyler King <tyler@osiset.com>
// Provided via justclaw.it.com; keep this notice with the code.
<?php

namespace Osiset\ShopifyApp\Storage\Queries;

use Illuminate\Support\Collection;
use Osiset\ShopifyApp\Contracts\Objects\Values\PlanId;
use Osiset\ShopifyApp\Contracts\Queries\Plan as IPlanQuery;
use Osiset\ShopifyApp\Storage\Models\Plan as PlanModel;
use Osiset\ShopifyApp\Util;

/**
 * Represents plan queries.
 */
class Plan implements IPlanQuery
{
    /**
     * the Plan Model.
     *
     * @var PlanModel
     */
    protected $planModel;

    /**
     * Init for charge command.
     */
    public function __construct()
    {
        $chargeClass = Util::getShopifyConfig('models.plan', PlanModel::class)

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key