I recently switched over to Laravel Backpack to manage my Admin Panel, but I am having a major issue right now.
I have Pages
, Articles
and Titles
in my Database.
A Page
or Article
can have many Titles
(each for a different language, a german title, english title, etc.), so they are connected via polymorphic 1:n relation:
public function titles()
{
return $this->morphMany('App\Models\Title', 'titleable');
}
Now, when I edit my Page (or Article), I want to also be able to edit all related titles. From what I understood, this is not possible at all in backpack and I am quite surprised that there is no native support to show a model's polymorphic relations when editing it.
Did I miss something or is this not possible at all with backpack?
Thank you for any advice.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire