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:
14
14
matrix :
15
15
os : [ubuntu-latest]
16
16
php : [8.1]
17
- laravel : [9.*, 8.* ]
17
+ laravel : [9.*]
18
18
stability : [prefer-lowest, prefer-stable]
19
19
include :
20
20
- laravel : 9.*
21
21
testbench : 7.*
22
- - laravel : 8.*
23
- testbench : ^6.23
24
22
25
23
name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
26
24
Original file line number Diff line number Diff line change 19
19
],
20
20
"require" : {
21
21
"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"
24
24
},
25
25
"require-dev" : {
26
26
"friendsofphp/php-cs-fixer" : " ^3.5" ,
27
- "orchestra/testbench" : " ^6.0|^ 7.0" ,
27
+ "orchestra/testbench" : " ^7.0" ,
28
28
"phpunit/phpunit" : " ^9.0"
29
29
},
30
30
"autoload" : {
Original file line number Diff line number Diff line change 4
4
5
5
use Esign \DatabaseTrigger \Commands \TriggerListCommand ;
6
6
use Esign \DatabaseTrigger \Commands \TriggerMakeCommand ;
7
+ use Esign \DatabaseTrigger \Facades \Schema ;
7
8
use Illuminate \Support \ServiceProvider ;
8
9
9
10
class DatabaseTriggerServiceProvider extends ServiceProvider
10
11
{
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
+
11
21
public function boot (): void
12
22
{
13
23
if ($ this ->app ->runningInConsole ()) {
Original file line number Diff line number Diff line change 6
6
use Esign \DatabaseTrigger \Database \Schema \MySqlBuilder ;
7
7
use Illuminate \Database \Connection ;
8
8
use Illuminate \Database \Schema \Builder ;
9
- use Illuminate \Support \Facades \Facade ;
9
+ use Illuminate \Support \Facades \Schema as BaseSchema ;
10
10
use RuntimeException ;
11
11
12
- class Schema extends Facade
12
+ class Schema extends BaseSchema
13
13
{
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
22
15
{
23
16
return static ::getSchemaBuilder (
24
17
static ::$ app ['db ' ]->connection ($ name )
You can’t perform that action at this time.
0 commit comments