File tree Expand file tree Collapse file tree 4 files changed +17
-16
lines changed Expand file tree Collapse file tree 4 files changed +17
-16
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,11 @@ jobs:
1414 matrix :
1515 os : [ubuntu-latest]
1616 php : [8.1]
17- laravel : [9.*, 8.* ]
17+ laravel : [9.*]
1818 stability : [prefer-lowest, prefer-stable]
1919 include :
2020 - laravel : 9.*
2121 testbench : 7.*
22- - laravel : 8.*
23- testbench : ^6.23
2422
2523 name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2624
Original file line number Diff line number Diff line change 1919 ],
2020 "require" : {
2121 "php" : " ^8.1" ,
22- "illuminate/support" : " ^8.69|^ 9.0" ,
23- "illuminate/database" : " ^8.69|^ 9.0"
22+ "illuminate/support" : " ^9.0" ,
23+ "illuminate/database" : " ^9.0"
2424 },
2525 "require-dev" : {
2626 "friendsofphp/php-cs-fixer" : " ^3.5" ,
27- "orchestra/testbench" : " ^6.0|^ 7.0" ,
27+ "orchestra/testbench" : " ^7.0" ,
2828 "phpunit/phpunit" : " ^9.0"
2929 },
3030 "autoload" : {
Original file line number Diff line number Diff line change 44
55use Esign \DatabaseTrigger \Commands \TriggerListCommand ;
66use Esign \DatabaseTrigger \Commands \TriggerMakeCommand ;
7+ use Esign \DatabaseTrigger \Facades \Schema ;
78use Illuminate \Support \ServiceProvider ;
89
910class DatabaseTriggerServiceProvider extends ServiceProvider
1011{
12+ public function register ()
13+ {
14+ $ this ->app ->bind ('db.schema ' , function ($ app ) {
15+ return Schema::getSchemaBuilder (
16+ $ app ['db ' ]->connection ()
17+ );
18+ });
19+ }
20+
1121 public function boot (): void
1222 {
1323 if ($ this ->app ->runningInConsole ()) {
Original file line number Diff line number Diff line change 66use Esign \DatabaseTrigger \Database \Schema \MySqlBuilder ;
77use Illuminate \Database \Connection ;
88use Illuminate \Database \Schema \Builder ;
9- use Illuminate \Support \Facades \Facade ;
9+ use Illuminate \Support \Facades \Schema as BaseSchema ;
1010use RuntimeException ;
1111
12- class Schema extends Facade
12+ class Schema extends BaseSchema
1313{
14- protected static function getFacadeAccessor (): Builder
15- {
16- return static ::getSchemaBuilder (
17- static ::$ app ['db ' ]->connection ()
18- );
19- }
20-
21- public static function connection (string $ name ): Builder
14+ public static function connection ($ name ): Builder
2215 {
2316 return static ::getSchemaBuilder (
2417 static ::$ app ['db ' ]->connection ($ name )
You can’t perform that action at this time.
0 commit comments