🆙 More fixes 🆙

This commit is contained in:
Remco
2026-01-19 20:52:46 +01:00
parent 9ed12c2b1c
commit 4a359a4fc9
4 changed files with 40 additions and 0 deletions
@@ -0,0 +1,12 @@
<?php
namespace App\Models\Miscellaneous;
use Illuminate\Database\Eloquent\Model;
class CameraLike extends Model
{
protected $guarded = [];
public $timestamps = false;
}
@@ -0,0 +1,12 @@
<?php
namespace App\Models\Miscellaneous;
use Illuminate\Database\Eloquent\Model;
class CameraView extends Model
{
protected $guarded = [];
public $timestamps = false;
}
@@ -35,26 +35,41 @@ class CameraWeb extends Model
}
}
/**
* @return BelongsTo<User, $this>
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
/**
* @return BelongsTo<Room, $this>
*/
public function room(): BelongsTo
{
return $this->belongsTo(Room::class);
}
/**
* @return HasMany<CameraLike, $this>
*/
public function likes(): HasMany
{
return $this->hasMany(CameraLike::class);
}
/**
* @return HasMany<CameraView, $this>
*/
public function views(): HasMany
{
return $this->hasMany(CameraView::class);
}
/**
* @return Attribute<string, never>
*/
protected function formattedDate(): Attribute
{
return new Attribute(
+1
View File
@@ -35,3 +35,4 @@
[2026-01-19 19:31:31] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
[2026-01-19 19:34:48] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
[2026-01-19 19:34:48] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
[2026-01-19 19:51:53] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd