applicant-site/app/Models/FeedbackStatus.php

24 lines
446 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class FeedbackStatus extends Model
{
use HasFactory;
protected $fillable = [
'id',
'name',
'created_at',
];
public function feedbacks(): HasMany
{
return $this->hasMany('App\Models\Feedback', 'status_id');
}
}