J
J
Jedi2020-11-14 17:07:50
Laravel
Jedi, 2020-11-14 17:07:50

How is a Laravel application extended?

I want to write my own service for working with Internet acquiring (payment).
Enlighten, please, how this should be implemented, namely, writing services for working with the bank's API?

I studied Laravel Cashier (code) and realized that I needed the same, only for myself, but I didn’t understand what it was :)

In the following code, we include files from the packages directory to work with a certain substance Billable .

use Laravel\Paddle\Billable;

class User extends Authenticatable
{
    use Billable;
}


Billable allows you to get very useful methods to work with in the future. And besides, this is a much cleaner code, and effective, since one directory of the package has all the necessary files to work in one of the directions.

Learning to write your own Billable will not be difficult, but should I introduce development?

Maybe you need to look towards writing your packages?

Can you please tell us how applications are expanded? I want to separate some parts, if that's the right thing to do.

Enlighten, please, I want to know and study competent and correct approaches in development. Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Babichev, 2020-11-14
@PHPjedi

Look towards the omnipay library .
There are already a bunch of banking providers and relatively easy integration with laravel.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question