Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PHP
laravel-rbac
Commits
a035099e
Commit
a035099e
authored
4 years ago
by
李文起
Browse files
Options
Download
Email Patches
Plain Diff
修改属性
parent
5d5d366e
master
v1.1.16
1 merge request
!4
修改属性
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Models/Model.php
+3
-1
src/Models/Model.php
with
3 additions
and
1 deletion
+3
-1
src/Models/Model.php
View file @
a035099e
...
...
@@ -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');
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help