Closed terence1990 closed 7 years ago
This helps with simplifying type scope so users can do this:
type
namespace Theme\Models; use WPEloquent\Model\Post; class Product extends Post { protected $post_type = 'product'; }
// this will return a product automatically var_dump(Product::first());
You're the man. Thanks for all your contributions to this.
This helps with simplifying
type
scope so users can do this: