File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 13
13
"illuminate/support" : " ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0"
14
14
},
15
15
"require-dev" : {
16
+ "friendsofphp/php-cs-fixer" : " ^3.0" ,
17
+ "laravel/pint" : " ^1.18" ,
16
18
"orchestra/testbench" : " ^4.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" ,
17
- "phpunit/phpunit" : " ^8.4 || ^9.0 || ^10.0" ,
18
- "friendsofphp/php-cs-fixer" : " ^3.0"
19
+ "phpunit/phpunit" : " ^8.4 || ^9.0 || ^10.0"
19
20
},
20
21
"autoload" : {
21
22
"psr-4" : {
Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ class HelperMakeCommand extends GeneratorCommand
32
32
*
33
33
* @return string
34
34
*/
35
- protected function getStub (): string
35
+ protected function getStub ()
36
36
{
37
- return base_path ( ' stubs/helper.stub ') ;
37
+ return __DIR__ . ' / stubs/helper.stub ' ;
38
38
}
39
39
40
40
/**
@@ -43,8 +43,8 @@ protected function getStub(): string
43
43
* @param string $rootNamespace
44
44
* @return string
45
45
*/
46
- protected function getDefaultNamespace ($ rootNamespace ): string
46
+ protected function getDefaultNamespace ($ rootNamespace )
47
47
{
48
- return $ rootNamespace . '\\' . config ('helpers.directory ' , 'Helpers ' );
48
+ return $ rootNamespace. '\\' . config ('helpers.directory ' , 'Helpers ' );
49
49
}
50
50
}
You can’t perform that action at this time.
0 commit comments