public function getPluralVariable($name)
    {
        $snake = snake_case($name);

        $variableName = camel_case(Str::plural($snake));

        if ($variableName == $this->getSingularVariable($name)) {
            $variableName .= 'Objects';
        }

        return $variableName;
    }
public function getPluralVariable($name)
    {
        $snake = snake_case($name);

        $variableName = camel_case(Str::plural($snake));

        if ($variableName == $this->getSingularVariable($name)) {
            $variableName .= 'Objects';
        }

        return $variableName;
    }
public function getPluralVariable ( $ name ) { $ snake = snake_case ( $ name ) ; $ variableName = camel_case ( Str :: plural ( $ snake ) ) ; if ( $ variableName == $ this -> getSingularVariable ( $ name ) ) { $ variableName .= 'Objects' ; } return $ variableName ; }
Gets plural variable instance of a given model.

@param  string  $name

@return string
Gets plural variable instance of a given model .