Storing model names on database and retrieving the data
<p>I am using laravel 5.2 and I am making a web site which requires to have locations on different category. I want to store model name in the database and fetch using the value retrieved from the database.</p>

<p>I have a hotel model</p>

<pre><code>-id
-name
</code></pre>

<p>And I have  restaurant model</p>

<pre><code>-id 
-name
</code></pre>

<p>And i have location model </p>

<pre><code>-id
-name
-latitude
-longitude
-modal_name
</code></pre>

<p>I want to store <code>App\Hotel</code> in <code>modal_name</code> column and want to fetch data from the same model.</p>

<p>How do I go about solving this problem?</p>