Bindesh
2 years ago
213
4
Laravel

How to register a service provicer dynamically?

Posted 2 years ago by Bindesh

Hello,

I want to register my service provider dynamically when i install my package with composer. i know we can do it with App::register('your/serviceProvider'); but it is not register as i wants.

Is there any way that I don't need to register my package service provider into app.php after installing package. how can I directly register my service provider to laravel IOC container.

Thanks in advance

Please sign in or create an account to participate in this conversation.