Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Mage2
User
Models
Role
PHP Class Mage2\User\Models\Role
Inheritance:
extends
Illuminate\Database\Eloquent\Model
Show file
Open project: mage2/laravel-ecommerce
Class Usage Examples
Protected Properties
Property
Type
Description
$fillable
Public Methods
Method
Description
hasPermission
(
$permissionName
)
permissions
( ) :
Role
Role has many Permissions
user
( ) :
User
Role can be assigne to many users
Method Details
hasPermission()
public
method
public
hasPermission
(
$permissionName
)
permissions()
public
method
Role has many Permissions
public
permissions
( ) :
Role
return
Role
user()
public
method
Role can be assigne to many users
public
user
( ) :
User
return
User
Property Details
$fillable
protected property
protected
$fillable