laravel 6 api resources how to use when pivot loaded with pivot table elqouent has name different from eloquent naming convension code example
Example: Laravel DB facade relations
$antiques = DB::table('antiques')
->join('images', 'images.antiques_id', '=', 'antiques.id')
->latest()
->limit(20)
->get(['antiques.*', 'images.path']);