update for version 1.0.2

This commit is contained in:
sujitprasad
2015-11-30 16:38:59 +05:30
parent d0a69a8df1
commit 7e17edab1e
425 changed files with 14241 additions and 3410 deletions

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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