2026-06-10 11:04:26 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2026-06-30 14:06:11 +02:00
|
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
2026-06-10 11:04:26 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @property int $id
|
|
|
|
|
* @property string $name
|
|
|
|
|
* @property string $slug
|
|
|
|
|
* @property \Illuminate\Support\Carbon|null $created_at
|
|
|
|
|
* @property \Illuminate\Support\Carbon|null $updated_at
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Level newModelQuery()
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Level newQuery()
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Level query()
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Level whereCreatedAt($value)
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Level whereId($value)
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Level whereName($value)
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Level whereSlug($value)
|
|
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Level whereUpdatedAt($value)
|
|
|
|
|
* @mixin \Eloquent
|
|
|
|
|
*/
|
|
|
|
|
class Level extends Model
|
|
|
|
|
{
|
|
|
|
|
protected $fillable = ['name', 'slug'];
|
2026-06-30 14:06:11 +02:00
|
|
|
|
|
|
|
|
public function entries(): HasMany
|
|
|
|
|
{
|
|
|
|
|
return $this->hasMany(Entry::class);
|
|
|
|
|
}
|
2026-06-10 11:04:26 +02:00
|
|
|
}
|