Hi,
I'm new to Laravel and am finding it an awesome tech and Laracasts an excellent resource that is generally excellent and has made getting going very rewarding.
I've watched the Laracast series about Laravel 6, and also the one about the new Cashier module. I've also played with an example of a Laravel 5/Cashier site and have is all set up and working, but I want to use Laravel 6, partly because the new error handling/reporting is very informative.
I'm having trouble getting going with Cashier in Laravel 6. As a first step, I'm trying to modify the template code for a laravel/ui vue --auth with laravel/cashier so that when a new user registers, they are automatically registered as a Strip user with User::createAsStripeCustomer(). To do this, I replaced User::create() (in RegisterController::create()) with User::createAsStripCustomer() but I get the following error:
ErrorException
Non-static method App\User::createAsStripeCustomer() should not be called statically
So I guess that the Billable trait has the static method, and that I'm trying to call it from a non-static method? Can anyone suggest a neat/simple way to fix this?
Failing a fix for where/how to register a new user as a Stripe customer with Cashier in the template code created by composer require laravel/ui and php artisan ui vue --auth, is there a more up-to-date tutorial that walks through the basic usage of Cashier? (The existing Laracast about Cashier/Stripe uses Strip in a seemingly out-dated way).