main
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class AttendanceBreak extends Model
|
||||
{
|
||||
|
||||
protected $fillable = [
|
||||
'attendance_id',
|
||||
'break_start',
|
||||
'break_end',
|
||||
];
|
||||
|
||||
// رابطه به حضور
|
||||
public function attendance()
|
||||
{
|
||||
return $this->belongsTo(Attendance::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user