Interact with API result values as object properties in Laravel
With the object method in the Laravel HTTP client, you can easily interact with API result values as object properties.
With the object method in the Laravel HTTP client, you can easily interact with API result values as object properties.
I needed to generate a relative path, but the Laravel route helper generates absolute paths by default.
When working with Pest tests, I usually use Chokidar file watcher to auto-run my test and have instant feedback after changing any code.
Laravel Eloquent can chain "where" conditions using dynamic/magic methods to fetch entries:
When using factories with relationships, Laravel also provides magic methods:
You can easily show how much a customer will pay in the next billing cycle with the upcomingInvoice method in Laravel Cashier (Stripe) to get the upcoming invoice details.
Dealing with Tax calculation on checkout pages always makes me sweat, especially EU Taxes. Luckily, Stripe and Laravel Cashier, in recent releases, have simplified it.
There is a handy syncStripeCustomerDetails method available on Laravel Cashier for Stripe that lets you keep in sync your customers details.
On Paddle, a buyer can opt-in to receive marketing emails and is stored as a new audience member.
When using Laravel Cashier Paddle, the styling provided for the pay button is not the prettier. Fortunately, Laravel Cashier provides a paddle-button blade component with the option to add custom styling.