Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| WebsiteCategoryDescription | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| category | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| <?php | |
| namespace App; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\Relations\BelongsTo; | |
| class WebsiteCategoryDescription extends Model | |
| { | |
| // Disable timestamp | |
| public $timestamps = false; | |
| protected $fillable = [ | |
| 'name', | |
| 'slug', | |
| 'website_category_id', | |
| 'language_id', | |
| ]; | |
| /** | |
| * @return BelongsTo | |
| */ | |
| public function category() :BelongsTo | |
| { | |
| return $this->belongsTo(WebsiteCategory::class); | |
| } | |
| } |