Roman_applicant-site/app/Models/FeedbackStatus.php

24 lines
446 B
PHP
Raw Permalink Normal View History

2024-04-23 14:23:21 +03:00
<?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');
}
}