first commit
This commit is contained in:
36
Modules/Training/app/Models/Trainer.php
Normal file
36
Modules/Training/app/Models/Trainer.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Training\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Training\Database\factories\TrainerFactory;
|
||||
|
||||
class Trainer extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'tbl_trainers';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = ['first_name',
|
||||
'middle_name',
|
||||
'last_name',
|
||||
'phone',
|
||||
'email',
|
||||
'address',
|
||||
'shift',
|
||||
'salary',
|
||||
'start_date',
|
||||
'end_date',
|
||||
'status',
|
||||
'remarks',
|
||||
];
|
||||
|
||||
protected static function newFactory(): TrainerFactory
|
||||
{
|
||||
//return TrainerFactory::new();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user