|Shop newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Shop newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Shop query() * @method static \Illuminate\Database\Eloquent\Builder|Shop whereName($value) * @method static \Illuminate\Database\Eloquent\Builder|Shop whereNpcVnum($value) * @method static \Illuminate\Database\Eloquent\Builder|Shop whereVnum($value) * * @mixin \Eloquent */ class Shop extends Model { /** * Indicates if the model should be timestamped. * * @var bool */ public $timestamps = false; /** * The table associated with the model. * * @var string */ protected $table = 'shop'; /** * The primary key for the model. * * @var string */ protected $primaryKey = 'vnum'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ ]; /** * The attributes that should be hidden for serialization. * * @var array */ protected $hidden = [ ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ ]; public function mob(): BelongsTo { return $this->belongsTo(MobProto::class, 'npc_vnum', 'vnum'); } }