vendredi 24 mai 2019

How to set two different names for name_type by Relation::morphMap() for only one model according to the conditions?

    Relation::morphMap([
        'media' => 'App\Models\IMedia'
    ]);

In IMedia we have videos and photos. I want according to the conditions instead of App\Models\IMedia to be written video or photo, not media. What is the solution?



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2M7S7dn
via IFTTT

Aucun commentaire:

Enregistrer un commentaire