update v1.0.6

This commit is contained in:
sujitprasad
2016-02-16 22:42:08 +05:30
parent e6b579d67b
commit 073a49a8af
587 changed files with 21487 additions and 22766 deletions

View File

@@ -1,27 +1,30 @@
<?php namespace App\Model\kb;
<?php
namespace App\Model\kb;
use Illuminate\Database\Eloquent\Model;
use Nicolaslopezj\Searchable\SearchableTrait;
class Article extends Model {
use SearchableTrait;
/**
* Searchable rules.
*
* @var array
*/
protected $searchable = [
'columns' => [
'name' => 10,
'slug' => 10,
'description' => 10,
use SearchableTrait;
],
];
/**
* Searchable rules.
*
* @var array
*/
protected $searchable = [
'columns' => [
'name' => 10,
'slug' => 10,
'description' => 10,
],
];
/* define the table name to get the properties of article model as protected */
protected $table = 'kb_article';
/* define the fillable field in the table */
protected $fillable = ['name', 'slug', 'description', 'type', 'status'];
/* define the table name to get the properties of article model as protected */
protected $table = 'kb_article';
/* define the fillable field in the table */
protected $fillable = ['name', 'slug', 'description', 'type', 'status', 'publish_time'];
}