Encore\Admin\Commands\MakeCommand::getDefaultNamespace PHP Method

getDefaultNamespace() protected method

Get the default namespace for the class.
protected getDefaultNamespace ( string $rootNamespace ) : string
$rootNamespace string
return string
    protected function getDefaultNamespace($rootNamespace)
    {
        $directory = config('admin.directory');
        $namespace = ucfirst(basename($directory));
        return $rootNamespace . "\\{$namespace}\\Controllers";
    }