Snapshot of main at 9f39a6e1e (2026-11-02)
This commit is contained in:
commit
6ccf1792d7
2580 files changed
+1040202
No files matched your search
@@ -0,0 +1,22 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user