1 | <?php |
||
7 | class EventCategory extends Model |
||
8 | { |
||
9 | /***************************************************************************/ |
||
10 | /** |
||
11 | * The table associated with the model. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $table = 'event_categories'; |
||
16 | |||
17 | /***************************************************************************/ |
||
18 | |||
19 | use \Dimsav\Translatable\Translatable; |
||
20 | |||
21 | public $translatedAttributes = ['name', 'slug']; |
||
22 | protected $fillable = []; |
||
23 | |||
24 | /***************************************************************************/ |
||
25 | |||
26 | /** |
||
27 | * Return the category name. |
||
28 | * |
||
29 | * @param int $categoryId |
||
30 | * @return string |
||
31 | */ |
||
32 | public static function getCategoryName($categoryId) |
||
38 | } |
||
39 |