Update Member Import
This commit is contained in:
31
app/Models/MemberPolicy.php
Normal file
31
app/Models/MemberPolicy.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Traits\Blameable;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class MemberPolicy extends Model
|
||||
{
|
||||
use HasFactory, SoftDeletes, Blameable;
|
||||
|
||||
protected $fillable = [
|
||||
'policy_id',
|
||||
'member_id',
|
||||
'status',
|
||||
'start',
|
||||
'end'
|
||||
];
|
||||
|
||||
public function policy()
|
||||
{
|
||||
return $this->belongsTo(Policy::class, 'policy_id', 'policy_id');
|
||||
}
|
||||
|
||||
public function member()
|
||||
{
|
||||
return $this->belongsTo(Member::class, 'member_id', 'member_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user