36 lines
680 B
PHP
36 lines
680 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class GiftOccasion extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'gift_occasions';
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array<string>
|
|
*/
|
|
protected $fillable = [
|
|
'account_id',
|
|
'label',
|
|
'position',
|
|
];
|
|
|
|
/**
|
|
* Get the account associated with the gift occasion.
|
|
*
|
|
* @return BelongsTo
|
|
*/
|
|
public function account(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Account::class);
|
|
}
|
|
}
|