protected function putViewLayout($name, $stub, $file)
    {
        $path_file = $this->getPathResource().$file;
        $path_stub = substr(__DIR__,0, -5) .$stub;

        if ($this->files->exists($path_file))
        {
            return $this->scaffoldCommandObj->comment("x $name (Skip)");
        }

        $html = $this->files->get($path_stub);
        $html = $this->buildStub($this->scaffoldCommandObj->getMeta(), $html);
        $this->files->put($path_file, $html);
        $this->scaffoldCommandObj->info("+ $name");
    }