Files
Kent-logistics-Laravel/app/Models/MarkList.php
2025-11-07 12:08:34 +05:30

30 lines
560 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class MarkList extends Model
{
protected $table = 'mark_lists';
protected $fillable = [
'mark_no', // e.g., MARK-2025-000001
'origin',
'destination',
'customer_name',
'mobile_no',
'customer_id',
'date',
'status',
];
/**
* Relationship: each mark list belongs to a customer (user)
*/
public function customer()
{
return $this->belongsTo(User::class, 'customer_id');
}
}