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");
    }
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");
    }
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" ) ; }
Write layout in path

@param $path_resource
@return void
@throws \Illuminate\Contracts\Filesystem\FileNotFoundException
Write layout in path