You've already forked Epicnabbo-Catalogus-Updated-Daily
21 lines
396 B
PHP
21 lines
396 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\Game\Furniture\Item;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
|
|
class ItemDefinition extends Model
|
|
{
|
|
protected $table = 'items_base';
|
|
|
|
/**
|
|
* @return HasMany<Item, $this>
|
|
*/
|
|
public function userItems(): HasMany
|
|
{
|
|
return $this->hasMany(Item::class, 'item_id');
|
|
}
|
|
}
|