Feat: Responses form

This commit is contained in:
Sallu9007
2025-01-26 02:13:19 +05:30
parent 7cd4a4c642
commit ec028d3f6f
4 changed files with 156 additions and 11 deletions

26
app/Models/Response.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Response extends Model
{
use HasFactory;
protected $fillable = [
'title',
'activity_type',
'start_date',
'end_date',
'proof',
'faculty_id',
];
// Define the relationship to the User (Faculty)
public function user()
{
return $this->belongsTo(User::class, 'faculty_id');
}
}