update v1.0.5
This commit is contained in:
@@ -20,7 +20,7 @@ class Article extends Model {
|
||||
];
|
||||
|
||||
/* define the table name to get the properties of article model as protected */
|
||||
protected $table = 'article';
|
||||
protected $table = 'kb_article';
|
||||
/* define the fillable field in the table */
|
||||
protected $fillable = ['name', 'slug', 'description', 'type', 'status'];
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Category extends Model {
|
||||
|
||||
protected $table = 'category';
|
||||
protected $table = 'kb_category';
|
||||
protected $fillable = ['id', 'slug', 'name', 'description', 'status', 'parent', 'created_at', 'updated_at'];
|
||||
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
*/
|
||||
class Comment extends Model {
|
||||
|
||||
protected $table = 'comment';
|
||||
protected $table = 'kb_comment';
|
||||
protected $fillable = ['article_id', 'name', 'email', 'website', 'comment', 'status'];
|
||||
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Page extends Model {
|
||||
|
||||
protected $table = 'pages';
|
||||
protected $table = 'kb_pages';
|
||||
protected $fillable = ['name', 'slug', 'status', 'visibility', 'description'];
|
||||
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class Relationship extends Model {
|
||||
|
||||
/* define the table */
|
||||
protected $table = 'article_relationship';
|
||||
protected $table = 'kb_article_relationship';
|
||||
/* define fillable fields */
|
||||
protected $fillable = ['id', 'category_id', 'article_id'];
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ class Settings extends Model {
|
||||
* @param $table, $fillable
|
||||
* @package default
|
||||
*/
|
||||
protected $table = 'settings';
|
||||
protected $table = 'kb_settings';
|
||||
protected $fillable = ['language', 'dateformat', 'company_name', 'website', 'phone', 'address', 'logo', 'timezone',
|
||||
'background', 'version', 'pagination', 'port', 'host', 'encryption', 'email', 'password'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user