Skip to content

Commit

Permalink
Added Blade flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marshall Miller committed Apr 28, 2021
1 parent efb1d36 commit 74aaca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Providers/LaunchDarklyServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace BrokenTitan\LaunchDarkly\Providers;

use BrokenTitan\LaunchDarkly\Service\Feature;
use BrokenTitan\LaunchDarkly\Facades\Feature;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;
use LaunchDarkly\Integrations\Guzzle;
Expand All @@ -17,7 +17,7 @@ public function register() {
});

Blade::if("feature", function(string $flag) {
return Feature::active($flag);
return Feature::flag($flag);
});
}
}

0 comments on commit 74aaca3

Please sign in to comment.