Certainly! Building Shopify apps with Laravel is a popular topic, but as you’ve noticed, the ecosystem changes quickly and many tutorials become outdated. Here’s how you can approach learning this with up-to-date resources:
1. Official Shopify Documentation
Shopify’s official docs are the best source for the latest changes:
They now recommend using their own libraries for authentication and API access, such as @shopify/shopify-api for Node, but you can implement the same flows in Laravel.
2. Laravel + Shopify: Modern Approach
Since kyon147/laravel-shopify is outdated, consider these options:
- Use Shopify’s OAuth and REST APIs directly in Laravel.
- Handle OAuth authentication yourself using Laravel Socialite or custom code.
- Use Laravel HTTP client (
Http::) to interact with Shopify APIs.
Example: Authenticating and making API calls in Laravel
use Illuminate\Support\Facades\Http;
// Example: Get shop data
$response = Http::withHeaders([
'X-Shopify-Access-Token' => $accessToken,
])->get("https://{$shop}.myshopify.com/admin/api/2023-10/shop.json");
$data = $response->json();
- Community Packages
- osiset/laravel-shopify is more up-to-date and widely used. Check the issues and PRs to see if it matches your needs.
3. Up-to-date Tutorials & Resources
- osiset/laravel-shopify Wiki – Good step-by-step guides.
- YouTube: “Build a Shopify App with Laravel” by Code Inspire – Somewhat recent, but always check the comments for updates.
- Medium: “How to Build a Shopify App with Laravel” – Written guides can be easier to update.
4. General Tips
- Follow Shopify’s changelog: Shopify Changelog
- Join the Shopify Community Forums: Shopify Community
- GitHub Discussions: Check issues/discussions on the main Laravel Shopify packages for workarounds and updates.
Summary
While there isn’t a single up-to-date, comprehensive course like Laracasts (yet), combining the official docs, a maintained package like osiset/laravel-shopify, and recent blog posts/YouTube videos is the best path forward. If you get stuck on a specific step (like OAuth, webhooks, or API calls), feel free to ask for code examples or troubleshooting help!
Let me know if you need a sample starter project or help with a specific part of the process.