23 lines
427 B
PHP
23 lines
427 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class OrganizationRole extends Model
|
|
{
|
|
protected $table = 'organization_roles';
|
|
|
|
protected $fillable = ['name', 'label', 'permissions'];
|
|
|
|
protected $casts = [
|
|
'permissions' => 'array',
|
|
'is_system' => 'boolean',
|
|
];
|
|
|
|
public function scopeNotSystem($query)
|
|
{
|
|
return $query->where('is_system', false);
|
|
}
|
|
}
|