Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| ArticleDescription | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| article | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| <?php | |
| namespace App; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\Relations\BelongsTo; | |
| class ArticleDescription extends Model | |
| { | |
| public $timestamps = false; | |
| protected $fillable = [ | |
| 'title', | |
| 'slug', | |
| 'meta_description', | |
| 'description', | |
| 'keywords', | |
| 'description', | |
| 'article_id', | |
| 'language_id', | |
| ]; | |
| /** | |
| * Return article for description | |
| * @return BelongsTo | |
| */ | |
| public function article() :BelongsTo | |
| { | |
| return $this->belongsTo(Article::class); | |
| } | |
| } |