lundi 27 février 2017

cannot using attach() method in laravel

I have the following relations set up:

public function notes()
{
    return $this->belongsToMany(Note::class);
}


public function tags()
{
    return $this->belongsToMany(Tag::class);
}

now, i used Attach() method:

$note->tags()->attach($tagsIds);

but that is not work and get this error:

[Symfony\Component\Debug\Exception\FatalErrorException] Cannot instantiate interface phpDocumentor\Reflection\DocBlock\Tag



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire