*/ protected $fillable = [ 'rating', 'content', 'organizer_id', 'artist_id', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'created_at' => 'datetime', ]; public function organizer(): BelongsTo { return $this->belongsTo(Organizer::class, 'organizer_id', 'user_id'); } public function artist(): BelongsTo { return $this->belongsTo(Artist::class, 'artist_id', 'user_id'); } }