Feat: External Engegement, Online Course and Patents

This commit is contained in:
Sallu9007
2025-04-02 13:46:22 +05:30
parent 2aa0cf0449
commit 711d9727fd
23 changed files with 2590 additions and 15 deletions

37
app/Models/Patent.php Normal file
View File

@@ -0,0 +1,37 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Patent extends Model
{
use HasFactory;
protected $fillable = [
'department_id',
'faculty_id',
'title',
'investigator',
'application_no',
'type',
'date_of_submission',
'date_of_filling',
'status',
'proof'
];
// Relationship with User (Faculty)
public function user()
{
return $this->belongsTo(User::class, 'faculty_id');
}
// Relationship with Department
public function department()
{
return $this->belongsTo(Department::class, 'department_id');
}
}