applicant-site/app/Models/Feedback.php

26 lines
469 B
PHP
Raw 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\BelongsTo;
class Feedback extends Model
{
use HasFactory;
protected $fillable = [
'id',
'contact',
'text',
'stats_id',
'created_at',
];
public function status(): BelongsTo
{
return $this->belongsTo(FeedbackStatus::class);
}
}