fix(NextCloud members and script - part 1)
This commit is contained in:
27
app/Models/NextCloudMember.php
Normal file
27
app/Models/NextCloudMember.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Enums\IspconfigType;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class NextCloudMember extends Model
|
||||
{
|
||||
protected $table = 'nextclouds_members';
|
||||
|
||||
protected $fillable = [
|
||||
'member_id',
|
||||
'nextcloud_user_id',
|
||||
'data',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'data' => 'array',
|
||||
];
|
||||
|
||||
public function member(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Member::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user