mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
3.2.3
This commit is contained in:
@@ -6,7 +6,8 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Rank extends Model
|
||||
{
|
||||
protected $casts = [
|
||||
'perm' => 'array',
|
||||
];
|
||||
public function permissions()
|
||||
{
|
||||
return collect(json_decode($this->permissions,true));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user