I also tried @if(Auth::user()->subscribed() ) but still to no avail.
Anyone.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have Cashier all setup and working, but I'm using the protected $cardUpFront = false; property which involves adding this $user->trial_ends_at = Carbon::now()->addDays(14); to the user model. So in effect there's no Stripe account until the customer enters their card details.
I want to be able to show invoices, but need someway to check that invoices exist on the customer account or else show nothing.
I have tried the following:
$inv = Auth::user();
$invoices = $inv->invoices();
So this works if there's an active stripe account, but then shows errors if there's nothing, what would be the best way to check?
I also tried in my view:
@if(count($invoices))
// Rest of code
@endif
But still doesn't work as expected. Anyone have any suggestions?
Please or to participate in this conversation.