-
I want to create a custom interface and class for payment like this: PaymentProvider.php interface PaymentProvider
{
public function create();
public function check();
public function verify();
} BankAPaymentProvider.php class BankAPaymentProvider implements PaymentProvider
{
public function create() {}
public function check() {}
public function verify() {}
} BankBPaymentProvider.php class BankBPaymentProvider implements PaymentProvider
{
public function create() {}
public function check() {}
public function verify() {}
} Now I want to know where is the correct place to put these files in Laravel project structure? |
Beta Was this translation helpful? Give feedback.
Answered by
jmarcher
Mar 23, 2021
Replies: 1 comment
-
There is no correct place, it can be whatever you want, you could just put them inside |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AmRo045
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is no correct place, it can be whatever you want, you could just put them inside
app/Contracts/