Make a Shopify App with Laravel Framework

composer create-project — prefer-dist laravel/laravel jewel-plugin-shopifycd jewel-plugin-shopifycomposer require osiset/laravel-shopifyphp artisan vendor:publish — tag=shopify-configvalet secure jewel-plugin-shopify
SHOPIFY_APP_NAME=”Jewel Delivery App”SHOPIFY_API_KEY=38db7d21889f........SHOPIFY_API_SECRET=shpss_17ac059a57e........SHOPIFY_API_SCOPES=read_products,write_products,read_customers,write_customers,read_orders,write_orders,read_shipping,write_shipping,read_checkouts,write_checkouts,read_locales,read_script_tags,write_script_tags,read_locations,read_themes,write_themes
Route::get(‘/’, function () {return view(‘welcome’);})->middleware([‘auth.shopify’])->name(‘home’);
@extends('shopify-app::layouts.default')@section('content')<!-- You are: (shop domain name) --><p>You are: {{ Auth::user()->name }}</p>@endsection@section('scripts')@parent<script type="text/javascript">var AppBridge = window['app-bridge'];var actions = AppBridge.actions;var TitleBar = actions.TitleBar;var Button = actions.Button;var Redirect = actions.Redirect;var titleBarOptions = {title: 'Welcome',};var myTitleBar = TitleBar.create(app, titleBarOptions);</script>@endsection
use Osiset\ShopifyApp\Contracts\ShopModel as IShopModel;use Osiset\ShopifyApp\Traits\ShopModel;
class User extends Authenticatable implements IShopModel
use ShopModel;
php artisan vendor:publish — tag=shopify-migrations && php artisan migrate

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store