src/ViewComposerMakeCommand.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @return mixed
public function handle()
    {
        $this->setConfig();
        $name = $this->qualifyClass($this->getNameInput());
        $path = $this->getPath($name);
        if ($this->alreadyExists($this->getNameInput())) {
            $this->error('view composer already exists!');
            return false;
        }
        $this->makeDirectory($path);
        $this->files->put($path, $this->buildClass($name));
        $this->info('view composer created successfully.');
    }
public function handle ( ) { $ this -> setConfig ( ) ; $ name = $ this -> qualifyClass ( $ this -> getNameInput ( ) ) ; $ path = $ this -> getPath ( $ name ) ; if ( $ this -> alreadyExists ( $ this -> getNameInput ( ) ) ) { $ this -> error ( 'view composer already exists!' ) ; return false ; } $ this -> makeDirectory ( $ path ) ; $ this -> files -> put ( $ path , $ this -> buildClass ( $ name ) ) ; $ this -> info ( 'view composer created successfully.' ) ; }
Execute the console command.
Execute the console command .