mirror of
https://github.com/dyzulk/santulitam-temp.git
synced 2026-01-26 22:01:56 +07:00
first commit
This commit is contained in:
30
app/Models/Attendance.php
Normal file
30
app/Models/Attendance.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\Theme;
|
||||
use App\Models\Student;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
||||
class Attendance extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'student_id',
|
||||
'theme_id',
|
||||
'check_in',
|
||||
'check_out',
|
||||
];
|
||||
|
||||
public function student()
|
||||
{
|
||||
return $this->belongsTo(Student::class);
|
||||
}
|
||||
|
||||
public function theme()
|
||||
{
|
||||
return $this->belongsTo(Theme::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user