Files
faveo/app/Model/kb/Article.php
Shift 74bd29e1ee Apply Laravel coding style
Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions.

You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root.

For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
2023-01-07 19:53:40 +00:00

32 lines
689 B
PHP

<?php
namespace App\Model\kb;
use App\BaseModel;
use Illuminate\Database\Eloquent\Model;
use Nicolaslopezj\Searchable\SearchableTrait;
class Article extends BaseModel
{
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', 'publish_time'];
}