StocksNew/Modules/Recruit/app/Models/OfferLetter.php

40 lines
836 B
PHP
Raw Normal View History

2024-08-27 12:03:06 +00:00
<?php
namespace Modules\Recruit\Models;
use App\Traits\StatusTrait;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Recruit\Database\factories\OfferLetterFactory;
class OfferLetter extends Model
{
use HasFactory, StatusTrait;
protected $table = 'tbl_offer_letters';
protected $primaryKey = "offer_letter_id";
/**
* The attributes that are mass assignable.
*/
protected $fillable = [
'applicant_name',
'department_id',
'designation_id',
'working_shift_id',
'salary',
'contract_time_period',
'joining_date',
'issued_date',
'issued_by',
'createdBy',
'updatedBy',
'description',
'remarks',
];
public $appends = ['status_name;'];
}