File tree 2 files changed +37
-0
lines changed
2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Helldar \LaravelSupport \Facades ;
4
+
5
+ use Helldar \LaravelSupport \Support \App as Support ;
6
+ use Illuminate \Support \Facades \Facade ;
7
+
8
+ /**
9
+ * @method static bool isLaravel()
10
+ * @method static bool isLumen()
11
+ */
12
+ final class App extends Facade
13
+ {
14
+ protected static function getFacadeAccessor ()
15
+ {
16
+ return Support::class;
17
+ }
18
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Helldar \LaravelSupport \Support ;
4
+
5
+ use Illuminate \Foundation \Application as LaravelApp ;
6
+ use Laravel \Lumen \Application as LumenApp ;
7
+
8
+ final class App
9
+ {
10
+ public function isLaravel (): bool
11
+ {
12
+ return class_exists (LaravelApp::class);
13
+ }
14
+
15
+ public function isLumen (): bool
16
+ {
17
+ return class_exists (LumenApp::class);
18
+ }
19
+ }
You can’t perform that action at this time.
0 commit comments