Files
BetiX/app/Models/ProfileComment.php
Dolo 0280278978
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (8.4) (push) Has been cancelled
tests / ci (8.5) (push) Has been cancelled
Initialer Laravel Commit für BetiX
2026-04-04 18:01:50 +02:00

24 lines
439 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ProfileComment extends Model
{
use HasFactory;
protected $fillable = ['user_id', 'profile_id', 'content'];
public function user()
{
return $this->belongsTo(User::class);
}
public function profile()
{
return $this->belongsTo(User::class, 'profile_id');
}
}