26 lines
591 B
PHP
26 lines
591 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Attributes\Guarded;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
|
|
|
#[Guarded(['id'])]
|
|
class AcademicAdvisingLog extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
public function students(): BelongsToMany
|
|
{
|
|
return $this->belongsToMany(Student::class);
|
|
}
|
|
|
|
public function lecturer(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Lecturer::class);
|
|
}
|
|
}
|