Skip to content

Commit 516db46

Browse files
author
Brandon O'Hara
authored
Fix caching issue on blade component (#56)
@brandonohara nice catch, thanks for the pull request.
1 parent 6483079 commit 516db46

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/LaravelSamlIdpServiceProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ public function offerPublishing()
8888
public function registerBladeComponents()
8989
{
9090
Blade::directive('samlidp', function ($expression) {
91-
if (request()->filled('SAMLRequest')) {
92-
return "<?php echo view('samlidp::components.input'); ?>";
93-
}
91+
return "<?php echo request()->filled('SAMLRequest') ? view('samlidp::components.input') : ''; ?>";
9492
});
9593
}
9694

0 commit comments

Comments
 (0)