Laravel: Polymorphic relation without owning model
<p>I will use the example of the laravel docs in order to explain my problem:</p>

<p>Imagine we want to store photos for staff members and for products. But also we want to store photos submitted by guests (so there is no record in our database for guests). We will need the following tables/models:</p>

<p><strong>staff</strong>(id, name)</p>

<p><strong>products</strong>(id, price)</p>

<p><strong>photos</strong>(id, path, imageable_id, imageable_type)</p>

<p>I know that all the photos belonging to staff will have imageable_type = 'staff' and imageable_id = staff_id. The same applies for the photos of products but with imageable_type = 'products' and imageable_id = product_id. </p>

<p>Can I store the photos belonging to guests with imageable_id = NULL and imageable_id = NULL without breaking any convention / causing problems? Is this the right way of doing it?</p>

<p>Thanks in advance :D</p>