40 lines
836 B
PHP
40 lines
836 B
PHP
|
<?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;'];
|
||
|
|
||
|
|
||
|
}
|