src/Commands/CrudViewCommand.php
protected function templateVars($file, $vars)
    {
        $start = $this->delimiter[0];
        $end = $this->delimiter[1];

        foreach ($vars as $var) {
            $replace = $start . $var . $end;
            if (in_array($var, $this->vars)) {
                File::put($file, str_replace($replace, $this->$var, File::get($file)));
            }
        }
    }
protected function templateVars($file, $vars)
    {
        $start = $this->delimiter[0];
        $end = $this->delimiter[1];

        foreach ($vars as $var) {
            $replace = $start . $var . $end;
            if (in_array($var, $this->vars)) {
                File::put($file, str_replace($replace, $this->$var, File::get($file)));
            }
        }
    }
protected function templateVars ( $ file , $ vars ) { $ start = $ this -> delimiter [ 0 ] ; $ end = $ this -> delimiter [ 1 ] ; foreach ( $ vars as $ var ) { $ replace = $ start . $ var . $ end ; if ( in_array ( $ var , $ this -> vars ) ) { File :: put ( $ file , str_replace ( $ replace , $ this -> $ var , File :: get ( $ file ) ) ) ; } } }
Update specified values between delimiter with real values

@param $file
@param $vars
Update specified values between delimiter with real values