'array', 'is_premium_export' => 'boolean', 'action_at' => 'datetime', 'created_at' => 'datetime', 'updated_at' => 'datetime', ]; protected $attributes = [ 'platform' => 'web', 'is_premium_export' => false, ]; /** * Get the related meme */ public function meme() { return $this->belongsTo(Meme::class, 'meme_id'); } /** * Get the related meme media */ public function memeMedia() { return $this->belongsTo(MemeMedia::class, 'meme_media_id'); } /** * Get the related background media */ public function backgroundMedia() { return $this->belongsTo(BackgroundMedia::class, 'background_media_id'); } }