Skip to content

Commit

Permalink
Support for Laravel 5.4
Browse files Browse the repository at this point in the history
Support for Laravel 5.4
  • Loading branch information
beckenrode committed Aug 23, 2017
1 parent 8364ff4 commit b2ecccf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
"description": "Laravel Vue Generators",
"keywords": ["laravel", "vue", "generators"],
"require": {
"php": ">=7.0.0"
},
"require-dev": {
"laravel/laravel": "5.5.*"
"laravel/laravel": ">=5.4.0"
},
"license": "MIT",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/ComponentMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ protected function buildClass($name)
*/
protected function getPath($name)
{
return base_path().config('vue-generators.components_path').Str::replaceFirst($this->rootNamespace(), '', $name).'.vue';
return base_path().config('vue-generators.components_path').Str::replaceFirst($this->laravel->getNamespace(), '', $name).'.vue';
}
}
2 changes: 1 addition & 1 deletion src/Commands/MixinMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ protected function buildClass($name)
*/
protected function getPath($name)
{
return base_path().config('vue-generators.mixins_path').Str::replaceFirst($this->rootNamespace(), '', $name).'.js';
return base_path().config('vue-generators.mixins_path').Str::replaceFirst($this->laravel->getNamespace(), '', $name).'.js';
}
}

0 comments on commit b2ecccf

Please sign in to comment.