Feat: Responses form
This commit is contained in:
26
app/Models/Response.php
Normal file
26
app/Models/Response.php
Normal 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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user