protected function createJsonConfig($name)
    {
        if ($this->files->exists($path = $this->getJsonPath())) {
            $this->error('Widget json config already exists!');

            return;
        }

        $stub = $this->files->get($this->getJsonStubPath());
        $stub = $this->replaceNamespace($stub, $name)->replaceClass($stub, $name);
        $stub = $this->replaceFQCN($stub, $name);
        $stub = $this->replaceView($stub);

        $this->files->put($path, $stub);

        $this->info('Json config created successfully.');
    }
protected function createJsonConfig($name)
    {
        if ($this->files->exists($path = $this->getJsonPath())) {
            $this->error('Widget json config already exists!');

            return;
        }

        $stub = $this->files->get($this->getJsonStubPath());
        $stub = $this->replaceNamespace($stub, $name)->replaceClass($stub, $name);
        $stub = $this->replaceFQCN($stub, $name);
        $stub = $this->replaceView($stub);

        $this->files->put($path, $stub);

        $this->info('Json config created successfully.');
    }
protected function createJsonConfig ( $ name ) { if ( $ this -> files -> exists ( $ path = $ this -> getJsonPath ( ) ) ) { $ this -> error ( 'Widget json config already exists!' ) ; return ; } $ stub = $ this -> files -> get ( $ this -> getJsonStubPath ( ) ) ; $ stub = $ this -> replaceNamespace ( $ stub , $ name ) -> replaceClass ( $ stub , $ name ) ; $ stub = $ this -> replaceFQCN ( $ stub , $ name ) ; $ stub = $ this -> replaceView ( $ stub ) ; $ this -> files -> put ( $ path , $ stub ) ; $ this -> info ( 'Json config created successfully.' ) ; }
Create json config file for widget details.

@param string $name
@throws \Illuminate\Contracts\Filesystem\FileNotFoundException
Create json config file for widget details .