Created
July 28, 2013 23:39
-
-
Save kapv89/6100738 to your computer and use it in GitHub Desktop.
Abstract Eloquent Use Case
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Order extends AbstractEloquent { | |
protected $isSuperType = true; | |
protected $typeField = 'class'; | |
} | |
namespace Order; | |
class Delivery extends Order { | |
protected $isSubType = true; | |
} | |
class Pickup extends Order { | |
protected $isSubType = true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment