updated-packages
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace Laravel\Dusk\Console;
|
||||
|
||||
use Illuminate\Console\GeneratorCommand;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class MakeCommand extends GeneratorCommand
|
||||
{
|
||||
@@ -45,7 +46,7 @@ class MakeCommand extends GeneratorCommand
|
||||
*/
|
||||
protected function getPath($name)
|
||||
{
|
||||
$name = str_replace_first($this->rootNamespace(), '', $name);
|
||||
$name = Str::replaceFirst($this->rootNamespace(), '', $name);
|
||||
|
||||
return $this->laravel->basePath().'/tests'.str_replace('\\', '/', $name).'.php';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user