使用Laravel文档中的多到多多态relaltionshiop数据库结构,如下所示: id - integer id - integertaggables taggable_id - integer我想检索post记录,post.name LIKE %laravel%还是tags.name LIKE %laravel%。如何使用雄辩的模型来建立这样的查询?这对我
在数据库中插入数据失败,所有查询类和模型类的方法找不到都显示在集成开发环境(phpStrom)中,我该如何解决?<?php namespace App;
use Illuminate\Database\Eloquent\Model;
public function scopePublished($query) $<e