src/Commands/Actions/FilesInteractions.php
protected function AppendTo($file, $stub)
    {
        return $this->filesystem->append(base_path() . '/routes/' . $file . '.php', $this->compileStub($stub));
    }
protected function AppendTo($file, $stub)
    {
        return $this->filesystem->append(base_path() . '/routes/' . $file . '.php', $this->compileStub($stub));
    }
Append to a file a particular stub.
@param $file
@param $stub
@return int