first commit
This commit is contained in:
18
app/Models/OrganisationUser.php
Normal file
18
app/Models/OrganisationUser.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Enums\OrganisationRole;
|
||||
use Illuminate\Database\Eloquent\Relations\MorphPivot;
|
||||
|
||||
class OrganisationUser extends MorphPivot
|
||||
{
|
||||
protected $guarded = [];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'role' => OrganisationRole::class,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user