Skip to content

Commit 2e963f1

Browse files
committed
fix: LaravelRuleModel Call to a member function connection() on null
1 parent 843f93a commit 2e963f1

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@
4343
"php-coveralls/php-coveralls": "^2.7",
4444
"workerman/webman": "^1.5||^2.0",
4545
"psr/container": "^1.1.1",
46-
"illuminate/database": "^8.83",
47-
"illuminate/pagination": "^8.83",
48-
"illuminate/events": "^8.83",
4946
"webman/think-orm": "^1.0",
50-
"phpunit/phpunit": "^10.5"
47+
"phpunit/phpunit": "^10.5",
48+
"webman/database": "^2.1",
49+
"illuminate/pagination": "^12.20",
50+
"illuminate/events": "^12.20",
51+
"symfony/var-dumper": "^7.3"
5152
}
5253
}

src/Model/LaravelRuleModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace Casbin\WebmanPermission\Model;
1212

13-
use Illuminate\Database\Eloquent\Model;
13+
use support\Model;
1414

1515
/**
1616
* RuleModel Model

src/Model/RuleModel.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@
1111
namespace Casbin\WebmanPermission\Model;
1212

1313
use think\Model;
14-
use think\contract\Arrayable;
1514

1615
/**
1716
* RuleModel Model
1817
*/
19-
class RuleModel extends Model implements Arrayable
18+
class RuleModel extends Model
2019
{
2120
/**
2221
* 设置字段信息

0 commit comments

Comments
 (0)