We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c90f54b commit 6a4747dCopy full SHA for 6a4747d
src/Models/Permission.php
@@ -22,6 +22,8 @@ class Permission extends Model implements PermissionContract
22
23
public function __construct(array $attributes = [])
24
{
25
+ $attributes['guard_name'] = $attributes['guard_name'] ?? config('auth.defaults.guard');
26
+
27
parent::__construct($attributes);
28
29
$this->guarded[] = $this->primaryKey;
src/Models/Role.php
@@ -22,6 +22,8 @@ class Role extends Model implements RoleContract
0 commit comments