adrema/app/Course/Models/CourseMember.php

20 lines
372 B
PHP
Raw Normal View History

2021-11-20 00:48:42 +01:00
<?php
namespace App\Course\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class CourseMember extends Model
{
use HasFactory;
public $guarded = [];
public function course(): BelongsTo
{
return $this->belongsTo(Course::class);
}
}