'boolean', 'category_id' => 'int', 'user_id' => 'int', 'meme_id' => 'int', 'background_id' => 'int', 'meme_keywords' => 'array', 'keywords' => 'array', ]; protected $fillable = [ 'type', 'is_system', 'category_id', 'user_id', 'meme_id', 'background_id', 'status', 'prompt', 'caption', 'meme_keywords', 'background', 'keywords' ]; public function meme_media() { return $this->hasOne(MemeMedia::class, 'id', 'meme_id'); } public function background_media() { return $this->hasOne(BackgroundMedia::class, 'id', 'background_id'); } }