Commit a035099e authored by 李文起's avatar 李文起
Browse files

修改属性

1 merge request!4修改属性
Showing with 3 additions and 1 deletion
+3 -1
......@@ -6,7 +6,9 @@ use Illuminate\Database\Eloquent\Model as BaseModel;
class Model extends BaseModel
{
public function __construct(){
public function __construct($attributes = []){
parent::__construct($attributes);
$this->setConnection(config('rbac.connection','rbac'));
}
//protected $connection = config('rbac.connection','rbac');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment