Skip to content

Commit

Permalink
Merge pull request #146 from lara-zeus/improve-bolt-parser
Browse files Browse the repository at this point in the history
push filament styles when embedding a form
  • Loading branch information
atmonshi authored Sep 2, 2023
2 parents 79fdeb3 + 8f8a8a9 commit a998ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Classes/BoltParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function __invoke(string $content): string
// @phpstan-ignore-next-line
$checkForm = \LaraZeus\Bolt\BoltPlugin::getModel('Form')::where('slug', $formSlug)->first();
if ($checkForm !== null) {
$boltComponent = Blade::render('<livewire:bolt.fill-form inline="true" slug="' . $formSlug . '" />');
$boltComponent = Blade::render('@push("styles") @filamentStyles @endpush <livewire:bolt.fill-form inline="true" slug="' . $formSlug . '" />');
$content = str_replace('<bolt>' . $formSlug . '</bolt>', $boltComponent, $content);
}
}
Expand Down

0 comments on commit a998ada

Please sign in to comment.