I have a fresh install of Laravel Cashier, via composer, and setup all my stripe stuff. My problems are at the laravel end, or maybe the VSCode end....
Problem 1. As per a post from someone else here a week ago, when I tried to add the Billable intent to the User object, my VSCode kept objecting saying that it was not a known class. And that was with the "Use" statement in the file.
The way fixed that, was to navigate, in vscode, into vendors/laravel/cashier and open the Billable.php file with vscode and then it believed me that it was a real class.
Problem 2. Then I add the following function to a brand new controller.....
public function index()
{
$data = [
'intent' => Auth::user()->createSetupIntent()
];
return view('subscriptions.payment')->with($data);
}
And now VSCode has put the red squiggle under "createSetupIntent()" and told me it's an undefined method. Sadly for this one, no amount of poking around in the vendor package will make it be recognised.....
Any ideas? There were no errors from Composer, I am running 13.6 of cashier......