Error in Custom Post Type
How can I add a custom post type using Gutenberg editor? I have already tried to implement the code using the reference tutorial https://www.cloudways.com/blog/gutenberg-wordpress-custom-post-type/ but I am having an issue in the registration code. Can anyone resolve it?
'labels' => array(
'name' => __( 'Portfolio' ),
'singular_name' => __( 'Portfolio' )
'has_archive' => true,
'public' => true,
'rewrite' => array('slug' => 'portfolio'),