23 lines
420 B
PHP
23 lines
420 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class AppFeedback extends Model
|
|
{
|
|
protected $table = 'app_feedback';
|
|
|
|
protected $fillable = ['user_id', 'stars', 'content'];
|
|
|
|
protected $casts = [
|
|
'stars' => 'integer',
|
|
];
|
|
|
|
public function user(): BelongsTo
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
}
|