#Reusable controller method logic?

1 messages · Page 1 of 1 (latest)

rich holly
#

I have some logic regarding Laravel Cashier for updating user details that I want to use in certain order controller methods. Where should I place this logic for use in the order controller methods?

I read that I could use Service Providers
Example: php artisan make:provider StripeServiceProvider

rotund iron
#

Use a trait?

#

seems like the simplest answer

rich holly
rotund iron
#

its not a laravel specific thing

rich holly