generated from liutk/owl-admin-base
24 lines
453 B
PHP
24 lines
453 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Traits\HasDateTimeFormatter;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\MorphOne;
|
|
|
|
class PlanLedger extends Model
|
|
{
|
|
use HasFactory, HasDateTimeFormatter;
|
|
|
|
protected $fillable = [
|
|
'date',
|
|
];
|
|
|
|
public function plan(): MorphOne
|
|
{
|
|
return $this->morphOne(Plan::class, 'planable');
|
|
}
|
|
}
|
|
|