-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with 'has_role' access condition
- Loading branch information
Showing
4 changed files
with
54 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* UserFrosting Account Sprinkle (http://www.userfrosting.com) | ||
* | ||
* @link https://github.com/userfrosting/sprinkle-account | ||
* @copyright Copyright (c) 2022 Alexander Weissman & Louis Charette | ||
* @license https://github.com/userfrosting/sprinkle-account/blob/master/LICENSE.md (MIT License) | ||
*/ | ||
|
||
namespace UserFrosting\Sprinkle\Account\Database\Models; | ||
|
||
use Illuminate\Database\Eloquent\Relations\Pivot; | ||
use UserFrosting\Sprinkle\Core\Database\Models\Model; | ||
|
||
/** | ||
* Represents a the User-Role many-to-many relationship intermediate table. | ||
* | ||
* @mixin \Illuminate\Database\Eloquent\Builder | ||
*/ | ||
class RoleUsers extends Pivot | ||
{ | ||
/** | ||
* @var string The name of the table for the current model. | ||
*/ | ||
protected $table = 'role_users'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters