- <?php
- class VenueType extends Model {
- protected static $table = "venue_type";
- protected static $id_field = "id";
- protected static $fillable_fields = ["name"];
- // Static methods
- public static function getAll() {
- return self::query([], ["sort" => "name"]);
- }
- }
|