Files
Atomcms-edit/app/Models/User/WebsiteUserGuestbook.php
T
root 574b5d6e17 fix: standardize language to English in README and AlertSettings
feat: add 24 model factories for Help, Shop, Community, Game, User domains

- Translate mixed Dutch/English strings in README.md and AlertSettings.php
- Add HasFactory trait to 23 models
- Create factories for Help (6), Shop (4), Community (5), Game (2), User (7)
2026-05-23 16:57:44 +02:00

26 lines
596 B
PHP
Executable File

<?php
namespace App\Models\User;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class WebsiteUserGuestbook extends Model
{
use HasFactory;
#[\Override]
protected $guarded = ['id', 'created_at', 'updated_at', 'user_id', 'profile_id'];
public function profile(): BelongsTo
{
return $this->belongsTo(User::class, 'profile_id');
}
public function user(): BelongsTo
{
return $this->belongsTo(User::class, 'user_id');
}
}