You can structure you application however you want, service layer, repositories and decorators etc... nothing is set in stone.
jacksoncharles said:
You can structure you application however you want, service layer, repositories and decorators etc... nothing is set in stone.
Thank you, and is there is something like defining service in config for IoC/DI ?
(disclaimer: i'm still pretty new to laravel)
just define your class anywhere you want (e.g. App\YourPackage\Service\Foo) and bind it to the service container via App::bind().
it is pretty well documented: http://laravel.com/docs/5.0/providers http://laravel.com/docs/5.0/container
DaHaiz said:
(disclaimer: i'm still pretty new to laravel)
just define your class anywhere you want (e.g. App\YourPackage\Service\Foo) and bind it to the service container via App::bind().
it is pretty well documented: http://laravel.com/docs/5.0/providers http://laravel.com/docs/5.0/container
Thank you !
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community