You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 More fixes 🆙
This commit is contained in:
@@ -10,6 +10,9 @@ class WebsiteTeam extends Model
|
||||
{
|
||||
protected $guarded = [];
|
||||
|
||||
/**
|
||||
* @return HasMany<User, $this>
|
||||
*/
|
||||
public function users(): HasMany
|
||||
{
|
||||
return $this->hasMany(User::class, 'team_id', 'id');
|
||||
|
||||
@@ -2,13 +2,10 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class EmulatorText extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
@@ -11,6 +11,9 @@ class CatalogItem extends Model
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* @return BelongsTo<ItemBase, $this>
|
||||
*/
|
||||
public function itemBase(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(ItemBase::class, 'item_ids', 'id');
|
||||
|
||||
@@ -11,6 +11,9 @@ class CatalogPage extends Model
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* @return HasMany<CatalogItem, $this>
|
||||
*/
|
||||
public function catalogItems(): HasMany
|
||||
{
|
||||
return $this->hasMany(CatalogItem::class, 'page_id');
|
||||
|
||||
@@ -12,6 +12,9 @@ class Item extends Model
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* @return BelongsTo<User, $this>
|
||||
*/
|
||||
public function user(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
|
||||
@@ -18,6 +18,9 @@ class ItemBase extends Model
|
||||
return sprintf('%s/%s_icon.png', setting('furniture_icons_path'), $this->item_name);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return HasMany<CatalogItem, $this>
|
||||
*/
|
||||
public function catalogItems(): HasMany
|
||||
{
|
||||
return $this->hasMany(CatalogItem::class, 'item_ids', 'id');
|
||||
|
||||
@@ -11,6 +11,9 @@ class Guild extends Model
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* @return HasMany<GuildMember, $this>
|
||||
*/
|
||||
public function members(): HasMany
|
||||
{
|
||||
return $this->hasMany(GuildMember::class);
|
||||
|
||||
@@ -13,6 +13,9 @@ class GuildMember extends Model
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* @return HasMany<Guild, $this>
|
||||
*/
|
||||
public function guilds(): HasMany
|
||||
{
|
||||
return $this->hasMany(Guild::class);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace App\Models\Game;
|
||||
|
||||
use App\Models\Compositions\HasBadge;
|
||||
use App\Models\StaffApplication;
|
||||
use App\Models\Community\Staff\WebsiteStaffApplications;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
@@ -16,19 +16,25 @@ class Permission extends Model implements HasBadge
|
||||
|
||||
protected $guarded = ['id', 'rank_name'];
|
||||
|
||||
/**
|
||||
* @return HasMany<User, $this>
|
||||
*/
|
||||
public function users(): HasMany
|
||||
{
|
||||
return $this->hasMany(User::class, 'rank', 'id');
|
||||
}
|
||||
|
||||
public function roles(): HasMany
|
||||
{
|
||||
return $this->hasMany(PermissionRole::class);
|
||||
}
|
||||
// public function roles(): HasMany
|
||||
// {
|
||||
// return $this->hasMany(PermissionRole::class);
|
||||
// }
|
||||
|
||||
/**
|
||||
* @return HasMany<WebsiteStaffApplications, $this>
|
||||
*/
|
||||
public function staffApplications(): HasMany
|
||||
{
|
||||
return $this->hasMany(StaffApplication::class, 'rank_id');
|
||||
return $this->hasMany(WebsiteStaffApplications::class, 'rank_id');
|
||||
}
|
||||
|
||||
public function getBadgePath(): string
|
||||
|
||||
@@ -12,11 +12,17 @@ class WebsiteHelpCenterTicketReply extends Model
|
||||
{
|
||||
protected $guarded = ['id'];
|
||||
|
||||
/**
|
||||
* @return BelongsTo<WebsiteHelpCenterTicket, $this>
|
||||
*/
|
||||
public function ticket(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(WebsiteHelpCenterTicket::class, 'ticket_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BelongsTo<User, $this>
|
||||
*/
|
||||
public function user(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class, 'user_id');
|
||||
|
||||
Reference in New Issue
Block a user