public function getStub($type, $name)
    {
        if (in_array($name, $this->ignores)) {
            return;
        }

        $type = $this->getInputType($type, $name);

        return Stub::create('/form/'.$type.'.stub', [
            'name' => $name,
            'label' => ucwords(str_replace('_', ' ', $name)),
        ])->render();
    }
public function getStub($type, $name)
    {
        if (in_array($name, $this->ignores)) {
            return;
        }

        $type = $this->getInputType($type, $name);

        return Stub::create('/form/'.$type.'.stub', [
            'name' => $name,
            'label' => ucwords(str_replace('_', ' ', $name)),
        ])->render();
    }
public function getStub ( $ type , $ name ) { if ( in_array ( $ name , $ this -> ignores ) ) { return ; } $ type = $ this -> getInputType ( $ type , $ name ) ; return Stub :: create ( '/form/' . $ type . '.stub' , [ 'name' => $ name , 'label' => ucwords ( str_replace ( '_' , ' ' , $ name ) ) , ] ) -> render ( ) ; }
Get stub template.

@param string $type
@param string $name

@return string
Get stub template .