Applied fixes from StyleCI
This commit is contained in:

committed by
StyleCI Bot

parent
be5df5334f
commit
d637c2b23f
@@ -5,8 +5,8 @@ namespace App\Model\kb;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Nicolaslopezj\Searchable\SearchableTrait;
|
||||
|
||||
class Article extends Model {
|
||||
|
||||
class Article extends Model
|
||||
{
|
||||
use SearchableTrait;
|
||||
|
||||
/**
|
||||
@@ -16,8 +16,8 @@ class Article extends Model {
|
||||
*/
|
||||
protected $searchable = [
|
||||
'columns' => [
|
||||
'name' => 10,
|
||||
'slug' => 10,
|
||||
'name' => 10,
|
||||
'slug' => 10,
|
||||
'description' => 10,
|
||||
],
|
||||
];
|
||||
@@ -26,5 +26,4 @@ class Article extends Model {
|
||||
protected $table = 'kb_article';
|
||||
/* define the fillable field in the table */
|
||||
protected $fillable = ['name', 'slug', 'description', 'type', 'status', 'publish_time'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Category extends Model {
|
||||
|
||||
class Category extends Model
|
||||
{
|
||||
protected $table = 'kb_category';
|
||||
protected $fillable = ['id', 'slug', 'name', 'description', 'status', 'parent', 'created_at', 'updated_at'];
|
||||
|
||||
}
|
||||
|
@@ -5,12 +5,10 @@ namespace App\Model\kb;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Define the Model of comment table
|
||||
* @package default
|
||||
* Define the Model of comment table.
|
||||
*/
|
||||
class Comment extends Model {
|
||||
|
||||
class Comment extends Model
|
||||
{
|
||||
protected $table = 'kb_comment';
|
||||
protected $fillable = ['article_id', 'name', 'email', 'website', 'comment', 'status'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Contact extends Model {
|
||||
|
||||
class Contact extends Model
|
||||
{
|
||||
protected $table = 'contact';
|
||||
protected $fillable = ['name', 'subject', 'email', 'message'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Country extends Model {
|
||||
|
||||
class Country extends Model
|
||||
{
|
||||
public $table = 'country';
|
||||
protected $fillable = ['country_code', 'country_name'];
|
||||
|
||||
}
|
||||
|
@@ -4,8 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DateFormat extends Model {
|
||||
|
||||
class DateFormat extends Model
|
||||
{
|
||||
protected $table = 'date_time_format';
|
||||
|
||||
//protected $fillable = ['id', 'name', 'description', 'status', 'parent', 'created_at', 'updated_at'];
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Faq extends Model {
|
||||
|
||||
class Faq extends Model
|
||||
{
|
||||
protected $table = 'faq';
|
||||
protected $fillable = ['id', 'faq'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Options extends Model {
|
||||
|
||||
class Options extends Model
|
||||
{
|
||||
protected $table = 'options';
|
||||
protected $fillable = ['option_name', 'option_value', 'created_at', 'updated_at'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Page extends Model {
|
||||
|
||||
class Page extends Model
|
||||
{
|
||||
protected $table = 'kb_pages';
|
||||
protected $fillable = ['name', 'slug', 'status', 'visibility', 'description'];
|
||||
|
||||
}
|
||||
|
@@ -4,11 +4,11 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Relationship extends Model {
|
||||
class Relationship extends Model
|
||||
{
|
||||
/* define the table */
|
||||
|
||||
protected $table = 'kb_article_relationship';
|
||||
/* define fillable fields */
|
||||
protected $fillable = ['id', 'category_id', 'article_id'];
|
||||
|
||||
}
|
||||
|
@@ -4,14 +4,12 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Settings extends Model {
|
||||
|
||||
class Settings extends Model
|
||||
{
|
||||
/**
|
||||
* @param $table, $fillable
|
||||
* @package default
|
||||
*/
|
||||
protected $table = 'kb_settings';
|
||||
protected $fillable = ['language', 'dateformat', 'company_name', 'website', 'phone', 'address', 'logo', 'timezone',
|
||||
'background', 'version', 'pagination', 'port', 'host', 'encryption', 'email', 'password'];
|
||||
|
||||
'background', 'version', 'pagination', 'port', 'host', 'encryption', 'email', 'password', ];
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Side1 extends Model {
|
||||
|
||||
class Side1 extends Model
|
||||
{
|
||||
protected $table = 'side1';
|
||||
protected $fillable = ['title', 'content'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Side2 extends Model {
|
||||
|
||||
class Side2 extends Model
|
||||
{
|
||||
protected $table = 'side2';
|
||||
protected $fillable = ['title', 'content'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Social extends Model {
|
||||
|
||||
class Social extends Model
|
||||
{
|
||||
protected $table = 'social';
|
||||
protected $fillable = ['linkedin', 'stumble', 'google', 'deviantart', 'flickr', 'skype', 'rss', 'twitter', 'facebook', 'youtube', 'vimeo', 'pinterest', 'dribbble', 'instagram'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Timezone extends Model {
|
||||
|
||||
class Timezone extends Model
|
||||
{
|
||||
protected $table = 'timezones';
|
||||
protected $fillable = ['id', 'name', 'location'];
|
||||
|
||||
}
|
||||
|
@@ -4,9 +4,8 @@ namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Zone extends Model {
|
||||
|
||||
class Zone extends Model
|
||||
{
|
||||
protected $table = 'zone';
|
||||
protected $fillable = ['zone_id', 'country_code', 'zone_name'];
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user