mirror of
https://github.com/slawkens/myaac.git
synced 2025-11-02 00:46:23 +01:00
* Database import tables on every install with "IF NOT EXISTS" This fixed errors when one table is missing or is duplicated * Add success message on import data * Reorder
16 lines
267 B
PHP
16 lines
267 B
PHP
<?php
|
|
|
|
namespace MyAAC\Models;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class NewsCategory extends Model {
|
|
|
|
protected $table = TABLE_PREFIX . 'news_categories';
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'name', 'description', 'icon_id', 'hide'
|
|
];
|
|
}
|