src/Classes/Module.php
public static function checkOnDisk()
    {
        $args = func_get_args();
        if (count($args) == 2)
            $module = $args[0] . DIRECTORY_SEPARATOR . $args[1];
        elseif (count($args) == 1)
            $module = $args[1];
        else
            throw  new \Exception();
        $module = str_replace('\\', DIRECTORY_SEPARATOR, $module);
        return (bool)app('files')->exists(app_path('Modules') . DIRECTORY_SEPARATOR . $module . DIRECTORY_SEPARATOR . 'Module.php');
    }
public static function checkOnDisk()
    {
        $args = func_get_args();
        if (count($args) == 2)
            $module = $args[0] . DIRECTORY_SEPARATOR . $args[1];
        elseif (count($args) == 1)
            $module = $args[1];
        else
            throw  new \Exception();
        $module = str_replace('\\', DIRECTORY_SEPARATOR, $module);
        return (bool)app('files')->exists(app_path('Modules') . DIRECTORY_SEPARATOR . $module . DIRECTORY_SEPARATOR . 'Module.php');
    }
public static function checkOnDisk ( ) { $ args = func_get_args ( ) ; if ( count ( $ args ) == 2 ) $ module = $ args [ 0 ] . DIRECTORY_SEPARATOR . $ args [ 1 ] ; elseif ( count ( $ args ) == 1 ) $ module = $ args [ 1 ] ; else throw new \ Exception ( ) ; $ module = str_replace ( '\\' , DIRECTORY_SEPARATOR , $ module ) ; return ( bool ) app ( 'files' ) -> exists ( app_path ( 'Modules' ) . DIRECTORY_SEPARATOR . $ module . DIRECTORY_SEPARATOR . 'Module.php' ) ; }
check module is disk or not
@return bool
check module is disk or not