Skip to content

Commit

Permalink
added stub for creating new extender class
Browse files Browse the repository at this point in the history
  • Loading branch information
tjodalv committed Mar 20, 2024
1 parent 50366e4 commit 2512a75
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions stubs/anchor-extender.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
namespace {{namespace}};

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

class {{class}} implements Extender
{
public function __invoke(?array $variables): string|Htmlable|Renderable
{
return '<p>Extending a view ...</p>';
}
}

0 comments on commit 2512a75

Please sign in to comment.