first commit

This commit is contained in:
Muhammad Herdy Iskandar
2024-07-26 10:33:44 +00:00
commit 7117a42b13
399 changed files with 19527 additions and 0 deletions

30
app/Models/Attendance.php Normal file
View 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);
}
}