protected function replaceServiceVar($name){
        //dd($name);
        $class = str_replace($this->getNamespace($name).'\\', '', $name);
        $class = strtolower(snake_case(str_replace('Service', '', $class)));
        //dd($class);
        return str_plural($class);
    }
protected function replaceServiceVar($name){
        //dd($name);
        $class = str_replace($this->getNamespace($name).'\\', '', $name);
        $class = strtolower(snake_case(str_replace('Service', '', $class)));
        //dd($class);
        return str_plural($class);
    }
protected function replaceServiceVar ( $ name ) { //dd($name); $ class = str_replace ( $ this -> getNamespace ( $ name ) . '\\' , '' , $ name ) ; $ class = strtolower ( snake_case ( str_replace ( 'Service' , '' , $ class ) ) ) ; //dd($class); return str_plural ( $ class ) ; }
Replace the service variable in the stub using pluralization

@param  string  $stub
@param  string  $name
@return string
Replace the service variable in the stub using pluralization