protected function getPath(): string
    {
        $directory = config('menus.directory');

        if (! $directory) {
            throw new DirectoryNotFound('Directory with menu files does not exist.');
        }

        $path = $this->file->exists(base_path($directory)) ? base_path($directory) : __DIR__ . '/../resources/menus';

        return $path;
    }
protected function getPath(): string
    {
        $directory = config('menus.directory');

        if (! $directory) {
            throw new DirectoryNotFound('Directory with menu files does not exist.');
        }

        $path = $this->file->exists(base_path($directory)) ? base_path($directory) : __DIR__ . '/../resources/menus';

        return $path;
    }
protected function getPath ( ) : string { $ directory = config ( 'menus.directory' ) ; if ( ! $ directory ) { throw new DirectoryNotFound ( 'Directory with menu files does not exist.' ) ; } $ path = $ this -> file -> exists ( base_path ( $ directory ) ) ? base_path ( $ directory ) : __DIR__ . '/../resources/menus' ; return $ path ; }
Get path to the directory with menus files.
Get path to the directory with menus files .