laravel / cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.
https://laravel.com/docs/cashier-paddle
MIT License
238 stars 57 forks source link

[2.x] Use morphs method in migrations #256

Closed dasundev closed 4 months ago

dasundev commented 4 months ago

This PR improves the code by using the morphs method for polymorphic relationships, replacing the need for billable_id and billable_type columns and the index method. This leads to cleaner, more efficient code with improved maintainability and readability.

dasundev commented 4 months ago

Any insights into why the test suite is failing?

cc: @taylorotwell @driesvints

driesvints commented 4 months ago

Tests fail because you don't have a Paddle API key set up in your GHA. But it's fine.

dasundev commented 4 months ago

Got it, thanks!