Skip to content

Commit

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

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

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

0 comments on commit afde99f

Please sign in to comment.