File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 7
7
use Barryvdh \LaravelIdeHelper \IdeHelperServiceProvider ;
8
8
use Illuminate \Contracts \Console \Kernel ;
9
9
use Illuminate \Contracts \Foundation \Application ;
10
+ use Illuminate \Database \Eloquent \Model ;
10
11
use Illuminate \Foundation \Application as LaravelApplication ;
12
+ use Illuminate \Foundation \AliasLoader ;
11
13
use Laravel \Lumen \Application as LumenApplication ;
12
14
use Orchestra \Testbench \Concerns \CreatesApplication ;
13
15
@@ -34,9 +36,30 @@ public static function bootApp(): void
34
36
$ app ->boot ();
35
37
}
36
38
39
+ self ::bootAppRegister ();
40
+ self ::bootAppAlias ();
41
+ }
42
+
43
+ /**
44
+ * @param LaravelApplication $app
45
+ *
46
+ * @return void
47
+ */
48
+ protected static function bootAppRegister ($ app ): void
49
+ {
37
50
$ app ->register (IdeHelperServiceProvider::class);
38
51
}
39
52
53
+ /**
54
+ * @param LaravelApplication $app
55
+ *
56
+ * @return void
57
+ */
58
+ protected static function bootAppAlias ($ app ): void
59
+ {
60
+ AliasLoader::getInstance ()->alias ('Eloquent ' , Model::class);
61
+ }
62
+
40
63
/**
41
64
* @return LaravelApplication|LumenApplication
42
65
*/
You can’t perform that action at this time.
0 commit comments