update for version 1.0.2
This commit is contained in:
27
code/app/Model/kb/Article.php
Normal file
27
code/app/Model/kb/Article.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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,
|
||||
|
||||
],
|
||||
];
|
||||
|
||||
/* define the table name to get the properties of article model as protected */
|
||||
protected $table = 'article';
|
||||
/* define the fillable field in the table */
|
||||
protected $fillable = ['name', 'slug', 'description', 'type', 'status'];
|
||||
|
||||
}
|
10
code/app/Model/kb/Category.php
Normal file
10
code/app/Model/kb/Category.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Category extends Model {
|
||||
|
||||
protected $table = 'category';
|
||||
protected $fillable = ['id', 'slug', 'name', 'description', 'status', 'parent', 'created_at', 'updated_at'];
|
||||
|
||||
}
|
14
code/app/Model/kb/Comment.php
Normal file
14
code/app/Model/kb/Comment.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Define the Model of comment table
|
||||
* @package default
|
||||
*/
|
||||
class Comment extends Model {
|
||||
|
||||
protected $table = 'comment';
|
||||
protected $fillable = ['article_id', 'name', 'email', 'website', 'comment', 'status'];
|
||||
|
||||
}
|
10
code/app/Model/kb/Contact.php
Normal file
10
code/app/Model/kb/Contact.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Contact extends Model {
|
||||
|
||||
protected $table = 'contact';
|
||||
protected $fillable = ['name', 'subject', 'email', 'message'];
|
||||
|
||||
}
|
10
code/app/Model/kb/Country.php
Normal file
10
code/app/Model/kb/Country.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Country extends Model {
|
||||
|
||||
public $table = 'country';
|
||||
protected $fillable = ['country_code', 'country_name'];
|
||||
|
||||
}
|
10
code/app/Model/kb/DateFormat.php
Normal file
10
code/app/Model/kb/DateFormat.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DateFormat extends Model {
|
||||
|
||||
protected $table = 'date_time_format';
|
||||
//protected $fillable = ['id', 'name', 'description', 'status', 'parent', 'created_at', 'updated_at'];
|
||||
|
||||
}
|
10
code/app/Model/kb/Faq.php
Normal file
10
code/app/Model/kb/Faq.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Faq extends Model {
|
||||
|
||||
protected $table = 'faq';
|
||||
protected $fillable = ['id', 'faq'];
|
||||
|
||||
}
|
9
code/app/Model/kb/Footer.php
Normal file
9
code/app/Model/kb/Footer.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Footer extends Model {
|
||||
|
||||
protected $table = 'footer';
|
||||
protected $fillable = ['title', 'footer'];
|
||||
}
|
10
code/app/Model/kb/Footer2.php
Normal file
10
code/app/Model/kb/Footer2.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Footer2 extends Model {
|
||||
|
||||
protected $table = 'footer2';
|
||||
protected $fillable = ['title', 'footer'];
|
||||
|
||||
}
|
10
code/app/Model/kb/Footer3.php
Normal file
10
code/app/Model/kb/Footer3.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Footer3 extends Model {
|
||||
|
||||
protected $table = 'footer3';
|
||||
protected $fillable = ['title', 'footer'];
|
||||
|
||||
}
|
10
code/app/Model/kb/Footer4.php
Normal file
10
code/app/Model/kb/Footer4.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Footer4 extends Model {
|
||||
|
||||
protected $table = 'footer4';
|
||||
protected $fillable = ['title', 'footer'];
|
||||
|
||||
}
|
10
code/app/Model/kb/Options.php
Normal file
10
code/app/Model/kb/Options.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Options extends Model {
|
||||
|
||||
protected $table = 'options';
|
||||
protected $fillable = ['option_name', 'option_value', 'created_at', 'updated_at'];
|
||||
|
||||
}
|
10
code/app/Model/kb/Page.php
Normal file
10
code/app/Model/kb/Page.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Page extends Model {
|
||||
|
||||
protected $table = 'pages';
|
||||
protected $fillable = ['name', 'slug', 'status', 'visibility', 'description'];
|
||||
|
||||
}
|
12
code/app/Model/kb/Relationship.php
Normal file
12
code/app/Model/kb/Relationship.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Relationship extends Model {
|
||||
|
||||
/* define the table */
|
||||
protected $table = 'article_relationship';
|
||||
/* define fillable fields */
|
||||
protected $fillable = ['id', 'category_id', 'article_id'];
|
||||
|
||||
}
|
16
code/app/Model/kb/Settings.php
Normal file
16
code/app/Model/kb/Settings.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php namespace App\Model\kb;
|
||||
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Settings extends Model {
|
||||
|
||||
/**
|
||||
* @param $table, $fillable
|
||||
* @package default
|
||||
*/
|
||||
protected $table = 'settings';
|
||||
protected $fillable = ['language', 'dateformat', 'company_name', 'website', 'phone', 'address', 'logo', 'timezone',
|
||||
'background', 'version', 'pagination', 'port', 'host', 'encryption', 'email', 'password'];
|
||||
|
||||
}
|
9
code/app/Model/kb/Side1.php
Normal file
9
code/app/Model/kb/Side1.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Side1 extends Model {
|
||||
|
||||
protected $table = 'side1';
|
||||
protected $fillable = ['title', 'content'];
|
||||
}
|
9
code/app/Model/kb/Side2.php
Normal file
9
code/app/Model/kb/Side2.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Side2 extends Model {
|
||||
|
||||
protected $table = 'side2';
|
||||
protected $fillable = ['title', 'content'];
|
||||
}
|
10
code/app/Model/kb/Social.php
Normal file
10
code/app/Model/kb/Social.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Social extends Model {
|
||||
|
||||
protected $table = 'social';
|
||||
protected $fillable = ['linkedin', 'stumble', 'google', 'deviantart', 'flickr', 'skype', 'rss', 'twitter', 'facebook','youtube','vimeo','pinterest','dribbble','instagram'];
|
||||
|
||||
}
|
10
code/app/Model/kb/Timezone.php
Normal file
10
code/app/Model/kb/Timezone.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Timezone extends Model {
|
||||
|
||||
protected $table = 'timezones';
|
||||
protected $fillable = ['id', 'name', 'location'];
|
||||
|
||||
}
|
9
code/app/Model/kb/Zone.php
Normal file
9
code/app/Model/kb/Zone.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php namespace App\Model\kb;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Zone extends Model {
|
||||
|
||||
protected $table = 'zone';
|
||||
protected $fillable = ['zone_id', 'country_code', 'zone_name'];
|
||||
}
|
Reference in New Issue
Block a user