Support the ongoing development of Laravel.io →
Eloquent Views Architecture
Last updated 2 years ago.
0

You can structure you application however you want, service layer, repositories and decorators etc... nothing is set in stone.

0

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 ?

0
Solution

(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

Last updated 9 years ago.
0

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 !

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Nerfair nerfair Joined 16 Mar 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.