PHP code example of clearlyip / laravel-flagsmith
1. Go to this page and download the library: Download clearlyip/laravel-flagsmith library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
clearlyip / laravel-flagsmith example snippets
$user = Auth::user();
$flags = $user->getFlags();
$user = Auth::user();
$flags = $user->isFlagEnabled('foo');
$user = Auth::user();
$vakue = $user->getFlagValue('foo');
$flagsmith = App::make(Flagsmith::class);