src/Database/Model.php
private function classToShake(): string
    {
        $className = \get_class($this);
        $classArray = explode('\\', $className);
        $class = end($classArray);
        try {
            $class = Stringy::create($class)->underscored();
        } catch (\InvalidArgumentException $e) {
            new Exception('Invalid argument provided');
        }
        return $class;
    }
private function classToShake(): string
    {
        $className = \get_class($this);
        $classArray = explode('\\', $className);
        $class = end($classArray);
        try {
            $class = Stringy::create($class)->underscored();
        } catch (\InvalidArgumentException $e) {
            new Exception('Invalid argument provided');
        }
        return $class;
    }
private function classToShake ( ) : string { $ className = \ get_class ( $ this ) ; $ classArray = explode ( '\\' , $ className ) ; $ class = end ( $ classArray ) ; try { $ class = Stringy :: create ( $ class ) -> underscored ( ) ; } catch ( \ InvalidArgumentException $ e ) { new Exception ( 'Invalid argument provided' ) ; } return $ class ; }
Convert class name for snake case

@return  string
Convert class name for snake case