*/ protected $fillable = [ 'news_club_id', 'published', 'answer', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'published' => 'boolean', ]; // * RELATIONSHIPS /** * Get the news club for the survey answer. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function newsClub(): \Illuminate\Database\Eloquent\Relations\BelongsTo { return $this->belongsTo(NewsClub::class, 'news_club_id'); } }