src/Lfm.php
public function currentLfmType()
    {
        $lfm_type = 'file';

        $request_type = lcfirst(str_singular($this->input('type') ?: ''));
        $available_types = array_keys($this->config->get('lfm.folder_categories') ?: []);

        if (in_array($request_type, $available_types)) {
            $lfm_type = $request_type;
        }

        return $lfm_type;
    }
public function currentLfmType()
    {
        $lfm_type = 'file';

        $request_type = lcfirst(str_singular($this->input('type') ?: ''));
        $available_types = array_keys($this->config->get('lfm.folder_categories') ?: []);

        if (in_array($request_type, $available_types)) {
            $lfm_type = $request_type;
        }

        return $lfm_type;
    }
public function currentLfmType ( ) { $ lfm_type = 'file' ; $ request_type = lcfirst ( str_singular ( $ this -> input ( 'type' ) ? : '' ) ) ; $ available_types = array_keys ( $ this -> config -> get ( 'lfm.folder_categories' ) ? : [ ] ) ; if ( in_array ( $ request_type , $ available_types ) ) { $ lfm_type = $ request_type ; } return $ lfm_type ; }
Get current lfm type.

@return string
Get current lfm type .