Skip to content

Commit f076557

Browse files
committed
Switch method order in service provider
1 parent 651704f commit f076557

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ServiceProvider.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010

1111
class ServiceProvider extends BaseServiceProvider
1212
{
13+
public function register()
14+
{
15+
$this->app->singleton(ResponseFactory::class);
16+
}
17+
1318
public function boot()
1419
{
1520
$this->registerBladeDirective();
@@ -18,11 +23,6 @@ public function boot()
1823
$this->registerMiddleware();
1924
}
2025

21-
public function register()
22-
{
23-
$this->app->singleton(ResponseFactory::class);
24-
}
25-
2626
protected function registerBladeDirective()
2727
{
2828
Blade::directive('inertia', function () {

0 commit comments

Comments
 (0)