You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
514 B
26 lines
514 B
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class CourseSignupCheckin extends Model
|
|
{
|
|
protected $fillable = [
|
|
'course_signup_id',
|
|
'checkin_date',
|
|
'checked_in_at',
|
|
];
|
|
|
|
protected $casts = [
|
|
'checkin_date' => 'date',
|
|
'checked_in_at' => 'datetime',
|
|
];
|
|
|
|
public function signup(): BelongsTo
|
|
{
|
|
return $this->belongsTo(CourseSignup::class, 'course_signup_id');
|
|
}
|
|
}
|