This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Abrouter\Client\Client; | |
use Abrouter\Client\Builders\StatEventBuilder; | |
class ExampleController | |
{ | |
public function __invoke(Client $client, StatEventBuilder $statEventBuilder) | |
{ | |
$userId = auth()->user()->id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types = 1); | |
namespace App\Http\Controllers; | |
use Abrouter\Client\Client; | |
class ExampleFeatureFlagsController | |
{ | |
public function __invoke(Client $client) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Abrouter\Client\Client; | |
use Abrouter\Client\DTO\EventDTO; | |
/** | |
* @var Client $client | |
*/ | |
$client = container()->make(Abrouter\Client\Client::class); | |
$userSignature = uniqid(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types = 1); | |
return [ | |
'token' => '0ea94e3527644b8e6259b790d866223490f3c91634bbfd0eb978b4a57a4d835d57ab5195f892b15d', | |
'host' => 'https://abrouter.com', | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types = 1); | |
return [ | |
'token' => '0ea94e3527644b8e6259b790d866223490f3c91634bbfd0eb978b4a57a4d835d57ab5195f892b15d', | |
'host' => 'https://abrouter.com', | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types = 1); | |
namespace App\Http\Controllers; | |
use Abrouter\Client\Client; | |
class ExampleFeatureFlagsController | |
{ | |
public function __invoke(Client $client) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE | |
if (!emptyMulti($redirectIfMobileModule, $redirectIfMobileAction)) { | |
... | |
} | |
INSTEAD OF | |
if (!empty($redirectIfMobileModule) && $redirectIfMobileAction) { | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------WebKitFormBoundaryu8dFdlDqoUBfhLbg | |
Content-Disposition: form-data; name="upload_id" | |
1494800925227 | |
------WebKitFormBoundaryu8dFdlDqoUBfhLbg | |
Content-Disposition: form-data; name="photo"; filename="photo.jpg" | |
Content-Type: image/jpeg | |
------WebKitFormBoundaryu8dFdlDqoUBfhLbg |