I migrated my laravel app from 4 to 5 and i am having an issue with this query:
$ids = AssetCustomTag::whereIn('custom_tag_id', $custom)->lists('asset_id')->all();
where $custom is an array of ids.
The error thrown from laravel is this one.
Declaration of AssetCustomTag::create(array $input) should be compatible with Illuminate\Database\Eloquent\Model::create(array $attributes = Array)
Not sure what that means as I am very new to laravel.
This is the create method. What do i need to do to it?
public static function create(array $input)
{
$name = $input['name'];
$account_id = $input['account_id'];
...
....
return $tag;
}