user model is added login/logout
This commit is contained in:
@@ -2,28 +2,24 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class MarkList extends Model
|
||||
{
|
||||
protected $table = 'mark_lists';
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'mark_list';
|
||||
|
||||
protected $fillable = [
|
||||
'mark_no', // e.g., MARK-2025-000001
|
||||
'mark_no',
|
||||
'origin',
|
||||
'destination',
|
||||
'customer_name',
|
||||
'mobile_no',
|
||||
'customer_id',
|
||||
'customer_name',
|
||||
'company_name',
|
||||
'mobile_no',
|
||||
'date',
|
||||
'status',
|
||||
'status'
|
||||
];
|
||||
|
||||
/**
|
||||
* Relationship: each mark list belongs to a customer (user)
|
||||
*/
|
||||
public function customer()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'customer_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user