Skip to content

Commit

Permalink
fixed stub
Browse files Browse the repository at this point in the history
  • Loading branch information
tjodalv committed Mar 20, 2024
1 parent d9399fc commit 0811128
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Commands/MakeAnchorExtenderCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class MakeAnchorExtenderCommand extends GeneratorCommand

public function getStub(): string
{
return __DIR__ . '../../stubs/anchor-extender.stub';
return __DIR__ . '/../../stubs/anchor-extender.stub';
}

public function getDefaultNamespace($rootNamespace)
Expand Down
4 changes: 2 additions & 2 deletions stubs/anchor-extender.stub
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ namespace {{namespace}};

use Illuminate\Contracts\Support\Htmlable;
use Illuminate\Contracts\Support\Renderable;
use Kanuni\LaravelBladeAnchor\Contracts\Extender;
use Kanuni\LaravelBladeAnchor\Contracts\AnchorExtender;

class {{class}} implements Extender
class {{class}} implements AnchorExtender
{
public function __invoke(?array $variables): string|Htmlable|Renderable
{
Expand Down

0 comments on commit 0811128

Please sign in to comment.