Skip to content

Commit

Permalink
Fix caching issue on blade component (#56)
Browse files Browse the repository at this point in the history
@brandonohara nice catch, thanks for the pull request.
  • Loading branch information
Brandon O'Hara authored Mar 24, 2021
1 parent 6483079 commit 516db46
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/LaravelSamlIdpServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ public function offerPublishing()
public function registerBladeComponents()
{
Blade::directive('samlidp', function ($expression) {
if (request()->filled('SAMLRequest')) {
return "<?php echo view('samlidp::components.input'); ?>";
}
return "<?php echo request()->filled('SAMLRequest') ? view('samlidp::components.input') : ''; ?>";
});
}

Expand Down

0 comments on commit 516db46

Please sign in to comment.