diff --git a/app/Http/Livewire/Recipes.php b/app/Http/Livewire/Recipes.php index e135f80..9cad6a7 100644 --- a/app/Http/Livewire/Recipes.php +++ b/app/Http/Livewire/Recipes.php @@ -54,6 +54,7 @@ class Recipes extends Component public function render() { $query = Recipe::select('recipes.*') + ->with(['crafters']) ->leftJoin('items', 'items.id', '=', 'recipes.item_id') ->leftJoin('spells', 'spells.id', '=', 'recipes.spell_id') ->orderBy(DB::raw('(IF(`recipes`.`spell_id` IS NOT NULL, `spells`.`name`, `items`.`name`))'));