Files

25 lines
421 B
PHP
Raw Permalink Normal View History

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Shayegan extends Model
{
protected $table = 'shayegan';
protected $guarded = [];
protected $casts = [
'date' => 'datetime',
'amount' => 'float',
];
public function customer(): BelongsTo
{
return $this->belongsTo(Customer::class);
}
}