Komponent na żywo utracony danych
public $selected_id;
public function getItemsProperty()
{
return Stock::select('item_id', 'warehouse_id')->groupBy('item_id', 'warehouse_id')->get();
}
public function render()
{
return view('some-view', [
'items' => $this->items,
])
}
Coffee Coder