26 lines
469 B
PHP
26 lines
469 B
PHP
|
<?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);
|
||
|
}
|
||
|
}
|