Forms\Components\Select::make('warehouse_id') ->relationship('warehouse', 'name') ->searchable() ->preload() ->required() ->live(),Forms\Components\Select::make('product_id') ->relationship('product', 'name') ->searchable() ->preload() ->required() ->unique(ignoreRecord: true, modifyRuleUsing: function (Unique $rule, Get $get) { return $rule ->where('warehouse_id', $get('warehouse_id')); }),