feat: add feedback api

This commit is contained in:
2026-06-07 15:38:35 +03:30
parent 11a1565323
commit 49dc7824c3
4 changed files with 150 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
<?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);
}
}