for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CodeZero\Localizer\Detectors;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Cookie;
class CookieDetector implements Detector
{
/**
* Detect the locale.
*
* @return string|array|null
*/
public function detect()
$key = Config::get('localizer.cookie-name');
return Cookie::get($key);
}