Skip to content

Commit

Permalink
Fix callAfterResolving
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Jul 9, 2020
1 parent a7a8109 commit 4c208e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/BladeZondiconsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@

final class BladeZondiconsServiceProvider extends ServiceProvider
{
public function boot(): void
public function register(): void
{
$this->callAfterResolving(Factory::class, function (Factory $factory) {
$factory->add('zondicons', [
'path' => __DIR__ . '/../resources/svg',
'prefix' => 'zondicon',
]);
});
}

public function boot(): void
{
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__ . '/../resources/svg' => public_path('vendor/blade-zondicons'),
Expand Down

0 comments on commit 4c208e4

Please sign in to comment.