This commit is contained in:
Mathieu Lagace
2019-09-12 07:53:18 -04:00
parent 7f07490bdf
commit 2331beab17
12 changed files with 378 additions and 190 deletions

View File

@@ -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));
}
}