We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ae90e5 commit 2b470e5Copy full SHA for 2b470e5
src/ServiceProvider.php
@@ -98,9 +98,7 @@ private function bootServices($service): void
98
$this->app->instance(Model::class, $model);
99
100
// register alias
101
- $this->app->bind('lodata.model', function ($app) {
102
- return $app->make(Model::class);
103
- });
+ $this->app->alias(Model::class, 'lodata.model');
104
105
$this->app->bind(Response::class, function () {
106
return Kernel::VERSION_ID < 60000 ? new Symfony\Response5() : new Symfony\Response6();
0 commit comments