Closed devajmeireles closed 2 months ago
Fix: #1706
stripe_id
should be accessed via Model attribute. Probably best to include failing tests for this use case.
This can be solved by:
stripe_id
value to null
on UserFactory
class.$user
after $user = User::factory()->create();
to avoid using actingAs()
removing $user->wasRecentlyCreated
to false
and causing MissingAttributeException
with strict eloquent setup.
Cashier Stripe Version
15.4.1
Laravel Version
11.20.0
PHP Version
8.3.10
Database Driver & Version
MySQL 8.0.36
Description
I have a basic test checking whether the logout occurs successfully in the application:
Along with the application, I also have an observer linked to the User model:
When I run the test, I get an error because
stripe_id
does not exist as a property defined anywhere in the model:Steps To Reproduce
stripe_id
as a property.