Billie/app/Models/PHP/UserEnroll.php

30 lines
591 B
PHP
Raw Permalink Normal View History

2025-05-06 02:47:26 +00:00
<?php
namespace App\Models\PHP;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class UserEnroll extends Model
{
use HasFactory;
protected $fillable = [
'id',
'id_users',
'php_topics_detail_id',
'created_at'
];
protected $table = 'php_student_enroll';
public function user()
{
return $this->belongsTo(\App\Models\User::class, 'id_users');
}
public function phpTopicDetail()
{
return $this->belongsTo(Topic_detail::class, 'php_topics_detail_id');
}
}