user15859900
user15859900

Reputation: 21

How to use Illuminate\Support\ServiceProvider in standalone application?

I am calling the register method of the respective service provider, but the actual boot method is not firing and ultimately not triggering the observer.

$app = new \Illuminate\Container\Container();
$app['app'] = $app;
with(new \MyNameSpace\Providers\AppServiceProvider($app))->register();

Upvotes: 1

Views: 350

Answers (0)

Related Questions