src/Resource.php
/**
     * Get all forms of the resource name as an array.
     *
     * @return array
     */
Get all forms of the resource name as an array.
@return array
Get all forms of the resource name as an array . @return array
public function toArray(): array
    {
        return [
            '{$_name}' => $this->raw(),
            '{$_singular}' => $this->singular(),
            '{$_plural}' => $this->plural(),
            '{$_singular_camel}' => $this->singularCamel(),
            '{$_plural_camel}' => $this->pluralCamel(),
            '{$_singular_snake}' => $this->singularSnake(),
            '{$_plural_snake}' => $this->pluralSnake(),
            '{$_singular_pascal}' => $this->singularPascal(),
            '{$_plural_pascal}' => $this->pluralPascal(),
            '{$_singular_lcfirst}' => $this->singularLowercaseFirst(),
            '{$_plural_lcfirst}' => $this->pluralLowercaseFirst(),
            '{$_plural_kebab}' => $this->pluralKebab(),
        ];
    }
public function toArray ( ) : array { return [ '{$_name}' => $ this -> raw ( ) , '{$_singular}' => $ this -> singular ( ) , '{$_plural}' => $ this -> plural ( ) , '{$_singular_camel}' => $ this -> singularCamel ( ) , '{$_plural_camel}' => $ this -> pluralCamel ( ) , '{$_singular_snake}' => $ this -> singularSnake ( ) , '{$_plural_snake}' => $ this -> pluralSnake ( ) , '{$_singular_pascal}' => $ this -> singularPascal ( ) , '{$_plural_pascal}' => $ this -> pluralPascal ( ) , '{$_singular_lcfirst}' => $ this -> singularLowercaseFirst ( ) , '{$_plural_lcfirst}' => $ this -> pluralLowercaseFirst ( ) , '{$_plural_kebab}' => $ this -> pluralKebab ( ) , ] ; }
Get all forms of the resource name as an array.
Get all forms of the resource name as an array .