diff --git a/src/LumenGenerator/Console/GeneratorCommand.php b/src/LumenGenerator/Console/GeneratorCommand.php
index <HASH>..<HASH> 100644
--- a/src/LumenGenerator/Console/GeneratorCommand.php
+++ b/src/LumenGenerator/Console/GeneratorCommand.php
@@ -89,7 +89,7 @@ abstract class GeneratorCommand extends Command
      */
     protected function getPath($name)
     {
-        $name = str_replace_first($this->laravel->getNamespace(), '', $name);
+        $name = Str::replaceFirst($this->laravel->getNamespace(), '', $name);
 
         return $this->laravel['path'].'/'.str_replace('\\', '/', $name).'.php';
     }
Update GeneratorCommand.php

str_replace_first was deprecated (RIP)

update to Str::replaceFirst