I am fairly new to Laravel Eloquent way to handle models.
I need to create a base Product class with some common properties and relations and some other classes that have some other properties not in common.
I'll try to make a quick example: all products have a "serial_number", a "ship_date" etc...
But only the Bottle and the Bulb classes have a "glass_type" feature, while the Chair class have another one.
I am doing some
abstract class Product extends Model {}
class Bottle extends Product {}
but I think this way the Product doesn't have any attached db $table, and I don't know how to handle the migrations table and the logic behind.
What is the best method to apply here?
Thank you in advance