mercredi 28 septembre 2016

Laravel 5 error when using whereIn

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.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire