public function posttype()
    {
        $this->setClassname($this->getArgument(0));

        $name = Str::snake($this->getClassname());

        $this->generateClass('Posttypes', 'posttype.stub', [
            'classname' => $this->getClassname(),
            'slug' => $this->getOption('slug', $name),
            'rewrite_slug' => $this->getOption('slug', Str::slug($name)),
        ]);
    }
public function posttype()
    {
        $this->setClassname($this->getArgument(0));

        $name = Str::snake($this->getClassname());

        $this->generateClass('Posttypes', 'posttype.stub', [
            'classname' => $this->getClassname(),
            'slug' => $this->getOption('slug', $name),
            'rewrite_slug' => $this->getOption('slug', Str::slug($name)),
        ]);
    }
public function posttype ( ) { $ this -> setClassname ( $ this -> getArgument ( 0 ) ) ; $ name = Str :: snake ( $ this -> getClassname ( ) ) ; $ this -> generateClass ( 'Posttypes' , 'posttype.stub' , [ 'classname' => $ this -> getClassname ( ) , 'slug' => $ this -> getOption ( 'slug' , $ name ) , 'rewrite_slug' => $ this -> getOption ( 'slug' , Str :: slug ( $ name ) ) , ] ) ; }
Scafford custom post type.

## OPTIONS

<classname>
: Name of the post type class.

[--slug=<slug>]
: Specify post type slug. If this option is not provided it will slugify post type name.

## EXAMPLE

wp assely:make posttype Movies
Scafford custom post type .