protected function getModel()
    {
        $name           = $this->getNameInput();
        $rootNamespace  = $this->laravel->getNamespace();
        $model          = $this->option('model') || $this->option('model-namespace');
        $modelNamespace = $this->option('model-namespace') ? $this->option('model-namespace') : $this->laravel['config']->get('datatables-buttons.namespace.model');

        return $model
            ? $rootNamespace . '\\' . ($modelNamespace ? $modelNamespace . '\\' : '') .  str_singular($name)
            : $rootNamespace . '\\User';
    }
protected function getModel()
    {
        $name           = $this->getNameInput();
        $rootNamespace  = $this->laravel->getNamespace();
        $model          = $this->option('model') || $this->option('model-namespace');
        $modelNamespace = $this->option('model-namespace') ? $this->option('model-namespace') : $this->laravel['config']->get('datatables-buttons.namespace.model');

        return $model
            ? $rootNamespace . '\\' . ($modelNamespace ? $modelNamespace . '\\' : '') .  str_singular($name)
            : $rootNamespace . '\\User';
    }
protected function getModel ( ) { $ name = $ this -> getNameInput ( ) ; $ rootNamespace = $ this -> laravel -> getNamespace ( ) ; $ model = $ this -> option ( 'model' ) || $ this -> option ( 'model-namespace' ) ; $ modelNamespace = $ this -> option ( 'model-namespace' ) ? $ this -> option ( 'model-namespace' ) : $ this -> laravel [ 'config' ] -> get ( 'datatables-buttons.namespace.model' ) ; return $ model ? $ rootNamespace . '\\' . ( $ modelNamespace ? $ modelNamespace . '\\' : '' ) . str_singular ( $ name ) : $ rootNamespace . '\\User' ; }
Get model name to use.
Get model name to use .