Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

humpback's avatar

Where to put Billing Interface in Laravel 5?

This video about Stripe uses Laravel 4 thus placing BillingInterface inside Acme folder. Question is which folder to place on Laravel 5.1? https://laracasts.com/series/billing-with-stripe/episodes/4

Thank you for your help.

0 likes
3 replies
pmall's avatar
pmall
Best Answer
Level 56

You can place it anywhere you want as long as you follow the PSR4 convention for namespacing the class and for the filename.

2 likes
tangoG's avatar

You can place it anywhere inside your project folder(if your follow PSR4 convention as @pmall said) but it would be nice if all your custom logic is placed in one directory like Acme folder.

1 like

Please or to participate in this conversation.