Skip to content

Instantly share code, notes, and snippets.

@yatsenkolesh
Created June 21, 2022 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yatsenkolesh/802ce7ea822c6df289711a7ccb6653c1 to your computer and use it in GitHub Desktop.
Save yatsenkolesh/802ce7ea822c6df289711a7ccb6653c1 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Laravel Test page</title>
</head>
<body>
<div>Hello. It's a ABRouter feature flags example. </div>
<br/>
@if ($enabledButtonFeatureFlag)
<button>This button is showing</button>
@endif
<br/>
<br/>
And the next button is not showing.
<br/>
<br/>
@if ($disabledButtonFeatureFlag)
<button>This button is not showing</button>
@endif
Let's inspect the code to understand how it works:
<br/>
<br/>
<br/>
Controller:
<br/>
<img src="/imgs/controller.png" width="50%"/>
<br/>
<br/>
<br/>
And the part of template:
<br/>
<img src="/imgs/template.png" width="50%"/>
<br/>
<br/>
<br/>
<div style="width: auto; margin-left:47%;"><a href="/">Back to the main page</a>
</div>
<br/>
<br/>
<br/>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment