• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: How to merge all models in laravel 9?

Resolved: How to merge all models in laravel 9?

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I want to show all slideshow when the images are not blank.

Answer:

$sliderProducts and $sliderServices will both be instances of Illuminate\Database\Eloquent\Builder class
You need to fetch the collection before trying to merge them
To get the collection you can use get() on the Builder. Try
Or to execute a union query you can do

If you have better answer, please add a comment about this, thank you!

laravel php
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: std::regex_replace to replace multiple combinations

26/03/2023

Resolved: How can I copy files using the ansible.builtin.copy module and avoid conflicting file names?

26/03/2023

Resolved: Reshape tensors of unknown shape with tf.function

26/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.