mardi 1 août 2017

Laravel has many relationship where parent doesn't have a table

I want to create a 'Logger' class that has many 'LogEntries'. I want my LogEntries to belong to 'Logger' but I don't want to create a table for 'Logger'. I want all LogEntries to belong to a single instance of Logger, there is no 'logger_id' on 'LogEntries', all records belong to a single 'Logger'. Is this sort of relationship possible in Laravel?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2w1RyWe
via IFTTT

Aucun commentaire:

Enregistrer un commentaire