update v1.0.5

This commit is contained in:
sujitprasad
2016-01-25 20:45:35 +05:30
parent 0b8ebb9c70
commit e7149e34e4
252 changed files with 9008 additions and 3152 deletions

View File

@@ -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'];

View File

@@ -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'];
}

View File

@@ -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'];
}

View File

@@ -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'];
}

View File

@@ -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'];

View File

@@ -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'];