user model is added login/logout

This commit is contained in:
Abhishek Mali
2025-11-07 17:34:56 +05:30
parent 5b764c7597
commit 7c7ac7683a
10 changed files with 375 additions and 92 deletions

View File

@@ -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');
}
}