| 1 | <?php |
||
| 10 | class ArticleCategory extends ChocolateyModel |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Disable Timestamps. |
||
| 14 | * |
||
| 15 | * @var bool |
||
| 16 | */ |
||
| 17 | public $timestamps = false; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Appenders Array. |
||
| 21 | * |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | protected $appends = ['name']; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * The table associated with the model. |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $table = 'chocolatey_articles_categories'; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Primary Key of the Table. |
||
| 35 | * |
||
| 36 | * @var string |
||
| 37 | */ |
||
| 38 | protected $primaryKey = 'link'; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Get the Original Link Attribute. |
||
| 42 | * |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | public function getNameAttribute() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Store a New Article Category. |
||
| 52 | * |
||
| 53 | * @param string $link |
||
| 54 | * @param string $translate |
||
| 55 | * |
||
| 56 | * @return $this |
||
| 57 | */ |
||
| 58 | public function store(string $link, string $translate) |
||
| 68 | } |
||
| 69 |