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

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

        $this->generateClass('Metaboxes', 'metabox.stub', [
            'classname' => $this->getClassname(),
            'slug' => $this->getOption('slug', $name),
            'belongsto' => $this->getOption('belongsto'),
        ]);
    }
public function metabox()
    {
        $this->setClassname($this->getArgument(0));

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

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

## OPTIONS

<classname>
: Name of the metabox class.

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

[--belongsto=<classname>]
: Specify where metabox belongs to.

## EXAMPLE

wp assely:make metabox MovieDetails --belongsto="App\Posttypes\Movies"
Scafford custom metabox .