Update Submissions and add fields

This commit is contained in:
2026-06-10 11:04:26 +02:00
parent 1d8ea70b72
commit 4f9f6c63b3
64 changed files with 2278 additions and 174 deletions

View File

@@ -8,6 +8,28 @@ use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;
/**
* @property int $id
* @property string $name
* @property string $slug
* @property string|null $website
* @property int|null $user_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Entry> $entries
* @property-read int|null $entries_count
* @method static \Illuminate\Database\Eloquent\Builder<static>|Author newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Author newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Author query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Author whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Author whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Author whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Author whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Author whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Author whereUserId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Author whereWebsite($value)
* @mixin \Eloquent
*/
class Author extends Model
{
protected $fillable = [

33
app/Models/Category.php Normal file
View File

@@ -0,0 +1,33 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @property int $id
* @property string $name
* @property string $slug
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property array<array-key, mixed>|null $restricted_to
* @method static \Illuminate\Database\Eloquent\Builder<static>|Category newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Category newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Category query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Category whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Category whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Category whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Category whereRestrictedTo($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Category whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Category whereUpdatedAt($value)
* @mixin \Eloquent
*/
class Category extends Model
{
protected $fillable = ['name', 'slug', 'restricted_to'];
protected $casts = [
'restricted_to' => 'array',
];
}

View File

@@ -2,17 +2,100 @@
namespace App\Models;
use App\Traits\HasGallery;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;
use Monolog\Level;
/**
* @property int $id
* @property string $type
* @property string|null $title
* @property string|null $slug
* @property string|null $description
* @property string|null $main_image
* @property string $state
* @property string|null $staff_comment
* @property \Illuminate\Support\Carbon|null $rejected_at
* @property bool $featured
* @property int|null $game_id
* @property int|null $platform_id
* @property int|null $status_id
* @property string|null $version
* @property \Illuminate\Support\Carbon|null $release_date
* @property string|null $staff_credits
* @property string|null $relevant_link
* @property string|null $youtube_link
* @property int $user_id
* @property int|null $comments_thread_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property string|null $complete_title
* @property \Illuminate\Support\Carbon|null $deleted_at
* @property int|null $level_id
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Author> $authors
* @property-read int|null $authors_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Category> $categories
* @property-read int|null $categories_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\EntryFile> $files
* @property-read int|null $files_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Gallery> $gallery
* @property-read int|null $gallery_count
* @property-read \App\Models\Game|null $game
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\EntryHash> $hashes
* @property-read int|null $hashes_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Language> $languages
* @property-read int|null $languages_count
* @property-read \App\Models\Level|null $level
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Modification> $modifications
* @property-read int|null $modifications_count
* @property-read \App\Models\Platform|null $platform
* @property-read \App\Models\Status|null $status
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\System> $systems
* @property-read int|null $systems_count
* @method static Builder<static>|Entry inQueue(int $daysRejected = 7)
* @method static Builder<static>|Entry newModelQuery()
* @method static Builder<static>|Entry newQuery()
* @method static Builder<static>|Entry onlyTrashed()
* @method static Builder<static>|Entry published()
* @method static Builder<static>|Entry query()
* @method static Builder<static>|Entry whereCommentsThreadId($value)
* @method static Builder<static>|Entry whereCompleteTitle($value)
* @method static Builder<static>|Entry whereCreatedAt($value)
* @method static Builder<static>|Entry whereDeletedAt($value)
* @method static Builder<static>|Entry whereDescription($value)
* @method static Builder<static>|Entry whereFeatured($value)
* @method static Builder<static>|Entry whereGameId($value)
* @method static Builder<static>|Entry whereId($value)
* @method static Builder<static>|Entry whereLevelId($value)
* @method static Builder<static>|Entry whereMainImage($value)
* @method static Builder<static>|Entry wherePlatformId($value)
* @method static Builder<static>|Entry whereRejectedAt($value)
* @method static Builder<static>|Entry whereReleaseDate($value)
* @method static Builder<static>|Entry whereRelevantLink($value)
* @method static Builder<static>|Entry whereSlug($value)
* @method static Builder<static>|Entry whereStaffComment($value)
* @method static Builder<static>|Entry whereStaffCredits($value)
* @method static Builder<static>|Entry whereState($value)
* @method static Builder<static>|Entry whereStatusId($value)
* @method static Builder<static>|Entry whereTitle($value)
* @method static Builder<static>|Entry whereType($value)
* @method static Builder<static>|Entry whereUpdatedAt($value)
* @method static Builder<static>|Entry whereUserId($value)
* @method static Builder<static>|Entry whereVersion($value)
* @method static Builder<static>|Entry whereYoutubeLink($value)
* @method static Builder<static>|Entry withTrashed(bool $withTrashed = true)
* @method static Builder<static>|Entry withoutTrashed()
* @mixin \Eloquent
*/
class Entry extends Model
{
use SoftDeletes;
use SoftDeletes, HasGallery;
/**
* @var string[]
@@ -38,6 +121,7 @@ class Entry extends Model
'comments_thread_id',
'staff_comment',
'rejected_at',
'level_id'
];
/**
@@ -81,6 +165,10 @@ class Entry extends Model
return $this->belongsTo(Status::class );
}
public function level(): BelongsTo {
return $this->belongsTo(\App\Models\Level::class);
}
public function authors(): BelongsToMany {
return $this->belongsToMany(Author::class, 'entry_authors');
}
@@ -93,12 +181,16 @@ class Entry extends Model
return $this->belongsToMany( Modification::class, 'entry_modifications');
}
public function files(): HasMany {
return $this->hasMany(EntryFile::class)->orderBy('filename');
public function categories(): BelongsToMany {
return $this->belongsToMany(Category::class, 'entry_categories');
}
public function gallery(): HasMany {
return $this->hasMany(EntryGallery::class)->orderBy('id');
public function systems(): BelongsToMany {
return $this->belongsToMany(System::class, 'entry_systems');
}
public function files(): HasMany {
return $this->hasMany(EntryFile::class)->orderBy('filename');
}
public function hashes(): HasMany {

View File

@@ -5,6 +5,39 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property int $id
* @property int $entry_id
* @property string $filename
* @property string $filepath
* @property string $favorite_server
* @property int $favorite_at
* @property int|null $filesize
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property string $file_uuid
* @property string $state
* @property int $online_patcher
* @property int $secondary_online_patcher
* @property-read \App\Models\Entry|null $entry
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereEntryId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereFavoriteAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereFavoriteServer($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereFileUuid($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereFilename($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereFilepath($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereFilesize($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereOnlinePatcher($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereSecondaryOnlinePatcher($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereState($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryFile whereUpdatedAt($value)
* @mixin \Eloquent
*/
class EntryFile extends Model
{
protected $fillable = [

View File

@@ -2,10 +2,7 @@
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class EntryGallery extends Model
{
protected $fillable = ['entry_id','image'];
}
/**
* @deprecated Use Gallery instead.
*/
class EntryGallery extends Gallery {}

View File

@@ -5,6 +5,29 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property int $id
* @property int $entry_id
* @property string $filename
* @property string $hash_crc32
* @property string $hash_sha1
* @property string $verified
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Entry|null $entry
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash whereEntryId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash whereFilename($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash whereHashCrc32($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash whereHashSha1($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EntryHash whereVerified($value)
* @mixin \Eloquent
*/
class EntryHash extends Model
{
protected $fillable = [

34
app/Models/Gallery.php Normal file
View File

@@ -0,0 +1,34 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\MorphTo;
/**
* @property int $id
* @property int $entry_id
* @property string $image
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder<static>|Gallery newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Gallery newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Gallery query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Gallery whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Gallery whereEntryId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Gallery whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Gallery whereImage($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Gallery whereUpdatedAt($value)
* @mixin \Eloquent
*/
class Gallery extends Model
{
protected $table = 'galleries';
protected $fillable = ['image', 'galleryable_id', 'galleryable_type'];
public function galleryable(): MorphTo
{
return $this->morphTo();
}
}

View File

@@ -5,6 +5,30 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property int $id
* @property string $name
* @property string $slug
* @property int $platform_id
* @property int $genre_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Entry> $entries
* @property-read int|null $entries_count
* @property-read \App\Models\Genre $genre
* @property-read \App\Models\Platform $platform
* @method static \Illuminate\Database\Eloquent\Builder<static>|Game newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Game newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Game query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Game whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Game whereGenreId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Game whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Game whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Game wherePlatformId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Game whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Game whereUpdatedAt($value)
* @mixin \Eloquent
*/
class Game extends Model
{
/**

View File

@@ -6,6 +6,24 @@ use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;
/**
* @property int $id
* @property string $name
* @property string $slug
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Game> $games
* @property-read int|null $games_count
* @method static \Illuminate\Database\Eloquent\Builder<static>|Genre newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Genre newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Genre query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Genre whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Genre whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Genre whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Genre whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Genre whereUpdatedAt($value)
* @mixin \Eloquent
*/
class Genre extends Model
{
protected $fillable = [ 'name', 'slug' ];

View File

@@ -6,6 +6,24 @@ use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;
/**
* @property int $id
* @property string $name
* @property string $slug
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Entry> $entries
* @property-read int|null $entries_count
* @method static \Illuminate\Database\Eloquent\Builder<static>|Language newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Language newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Language query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Language whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Language whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Language whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Language whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Language whereUpdatedAt($value)
* @mixin \Eloquent
*/
class Language extends Model
{
protected $fillable = [ 'name', 'slug' ];

26
app/Models/Level.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @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'];
}

View File

@@ -4,6 +4,22 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @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>|Modification newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Modification newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Modification query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Modification whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Modification whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Modification whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Modification whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Modification whereUpdatedAt($value)
* @mixin \Eloquent
*/
class Modification extends Model
{
protected $fillable = [ 'name', 'slug' ];

View File

@@ -5,6 +5,28 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
/**
* @property int $id
* @property string $name
* @property string $slug
* @property string|null $short_name
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Entry> $entries
* @property-read int|null $entries_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Game> $games
* @property-read int|null $games_count
* @method static \Illuminate\Database\Eloquent\Builder<static>|Platform newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Platform newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Platform query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Platform whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Platform whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Platform whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Platform whereShortName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Platform whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Platform whereUpdatedAt($value)
* @mixin \Eloquent
*/
class Platform extends Model
{

View File

@@ -4,6 +4,22 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @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>|Status newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Status whereUpdatedAt($value)
* @mixin \Eloquent
*/
class Status extends Model
{
protected $fillable = ['name', 'slug'];

26
app/Models/System.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @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>|System newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|System newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|System query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|System whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|System whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|System whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|System whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|System whereUpdatedAt($value)
* @mixin \Eloquent
*/
class System extends Model
{
protected $fillable = ['name', 'slug'];
}

View File

@@ -10,6 +10,31 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
/**
* @property int $id
* @property string $name
* @property string $email
* @property \Illuminate\Support\Carbon|null $email_verified_at
* @property string $password
* @property string|null $remember_token
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Notifications\DatabaseNotificationCollection<int, \Illuminate\Notifications\DatabaseNotification> $notifications
* @property-read int|null $notifications_count
* @method static \Database\Factories\UserFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|User newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|User newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|User query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|User whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|User whereEmail($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|User whereEmailVerifiedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|User whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|User whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|User wherePassword($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|User whereRememberToken($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|User whereUpdatedAt($value)
* @mixin \Eloquent
*/
#[Fillable(['name', 'email', 'password'])]
#[Hidden(['password', 'remember_token'])]
class User extends Authenticatable