mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-08-01 08:16:55 -04:00
47 lines
1008 B
PHP
47 lines
1008 B
PHP
<?php
|
|
|
|
namespace Modules\JobPortal\Entities;
|
|
|
|
use Modules\JobPortal\Entities\BaseModel;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
class GigTranslation extends BaseModel
|
|
{
|
|
protected $table = 'jp_gig_translations';
|
|
|
|
protected $fillable = [
|
|
'title',
|
|
'content',
|
|
'packages',
|
|
'package_compare',
|
|
'requirements',
|
|
'faqs',
|
|
];
|
|
|
|
protected $slugField = false;
|
|
protected $seo_type = 'gig_translation';
|
|
|
|
protected $cleanFields = [
|
|
'content'
|
|
];
|
|
protected $casts = [
|
|
'packages' => 'array',
|
|
'package_compare' => 'array',
|
|
'requirements' => 'array',
|
|
'faqs' => 'array',
|
|
];
|
|
|
|
public function getSeoType(){
|
|
return $this->seo_type;
|
|
}
|
|
|
|
public static function boot() {
|
|
parent::boot();
|
|
static::saving(function($table) {
|
|
unset($table->extra_price);
|
|
unset($table->price);
|
|
unset($table->sale_price);
|
|
});
|
|
}
|
|
}
|