在我的控制器中,我返回一个json对象,其中包含: public function show(Comic $comic) //
return Comic::with('seriesArgument 1 passed to Symfony\Component\HttpFoundation\Response::setContent() must be of the type string or null
基本关系是:LocationsrentalDataWithSpatialLocationData = $region->rentals->location; // what I liked to do
但是,使用belongsTo关系的最后一行通过将来自现在,$rentals集合包含一个区域的所有租金,但没有空间数据来标记地图上的位置,但除了
我使用的是Laravel 7,我遇到了一个问题,我的受约束的关系没有返回任何数据:class Domain extends Model ...`domain_id` in (1) group by `date`, `ball_1`" ]如果执行第二个查询,我可以检索两个预期的元素:
我在这里做错什么了?