Skip to content

Commit d810369

Browse files
authored
Merge pull request #165 from Laravel-Backpack/override-widget-path
Override widget command path
2 parents d71a594 + 7a19980 commit d810369

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Console/Commands/Views/WidgetBackpackCommand.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,15 @@ class WidgetBackpackCommand extends PublishOrCreateViewBackpackCommand
4545
* @var string
4646
*/
4747
protected $stub = 'widget.stub';
48+
49+
/**
50+
* Get the destination class path.
51+
*
52+
* @param string $name
53+
* @return string
54+
*/
55+
protected function getPath($name)
56+
{
57+
return resource_path("views/vendor/backpack/base/{$this->viewNamespace}/$name.blade.php");
58+
}
4859
}

0 commit comments

Comments
 (0)