private function getArgumentResource()
    {
        $name = $this->argument('resource');
        if (str_contains($name, '/')) {
            $name = str_replace('/', '.', $name);
        }

        if (str_contains($name, '\\')) {
            $name = str_replace('\\', '.', $name);
        }

        // lowecase and singular
        $name = strtolower(str_singular($name));

        return $name;
    }
private function getArgumentResource()
    {
        $name = $this->argument('resource');
        if (str_contains($name, '/')) {
            $name = str_replace('/', '.', $name);
        }

        if (str_contains($name, '\\')) {
            $name = str_replace('\\', '.', $name);
        }

        // lowecase and singular
        $name = strtolower(str_singular($name));

        return $name;
    }
private function getArgumentResource ( ) { $ name = $ this -> argument ( 'resource' ) ; if ( str_contains ( $ name , '/' ) ) { $ name = str_replace ( '/' , '.' , $ name ) ; } if ( str_contains ( $ name , '\\' ) ) { $ name = str_replace ( '\\' , '.' , $ name ) ; } // lowecase and singular $ name = strtolower ( str_singular ( $ name ) ) ; return $ name ; }
The resource argument
Lowercase and singular each word

@return array|mixed|string
The resource argument Lowercase and singular each word