v4.1.9: Начальная производственная версия
- Полный backend на Hono + TypeScript - SQLite база данных с 38 записями - 3 пользователя: admin, aknaproff, kasutaja - Модальное окно reportModal (4 шага) - Docker конфигурация для Synology ARM - Все миграции (0001-0017) - Frontend: vanilla HTML/JS (original.html)
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class FormDataComment extends Model
|
||||
{
|
||||
/**
|
||||
* The attributes that aren't mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $guarded = ['id'];
|
||||
|
||||
/**
|
||||
* Get the form_data that owns the comment.
|
||||
*/
|
||||
public function post()
|
||||
{
|
||||
return $this->belongsTo(\App\FormData::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the commentator for comment.
|
||||
*/
|
||||
public function commentedBy()
|
||||
{
|
||||
return $this->belongsTo(\App\User::class, 'user_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user