Skip to content

webdawe/laravel-shopify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

laravel-shopify

Laravel Shopify Package

Package: Webdawe/Shopify Shopify Manager Shopify Facade

#Example Usage in controller

namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use ShopifyApi;
class ProductApiController extends Controller
{
    /**
     * Get Product
     * @param [type] $id
     * @return string
     */
    public function get($id)
    {
        return ShopifyApi::getProduct($id);
    }
    /**
     * Retrieve all products
     *
     * @return json
     */
    public function all()
    {
        return ShopifyApi::getAllProducts();
    }
    
}

#usage in Console to Sync To Shopify

ShopifyApi::addProduct($data)

.env

SHOPIFY_API_TOKEN=***
SHOPIFY_STORE=***@***

Config/app.php providers

...   
Webdawe\Shopify\Providers\ShopifyServiceProvider::class,
...

About

Laravel Shopify Package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages