Laravel 5 Dynamically create Eloquent Models
问题 Suppose I have an of mysql table names and a row id: ['table_name' => 'things', 'row_id' => 11], ['table_name' => 'stuff', 'row_id' => 5] Each of these tables has an Eloquent model referencing the table. How can I iterate the list and dynamically use the Model to create a new instance from the table_name key and find the row based on the row_id key? I can get the data I need through a Builder instance but I really need to construct a Model instance. This is because I am implementing a