^\d?\s?\(?\d{3}\)?[\s-]{0,1}\d{3}[\s-]{0,1}\d{4}$
curl --location --request POST 'https://www.mysite.ru' \
--header 'Host: http://www.mysite.ru' \
--header 'Host: http://www.fakesite.ru' \
--header 'X-Forwarded-Host: http://www.fakesite.ru' \
category regexp '[[:<:]](137)[[:>:]]'
host: '127.0.0.1',
host: '0.0.0.0',
usort($array, fn ($a, $b) => $a['NAME'] <=> $b['NAME']);
usort($array, function ($a, $b) {
$aWords = explode(' ', $a['NAME']);
$bWords = explode(' ', $b['NAME']);
return $aWords[1] <=> $bWords[1];
});
use Illuminate\Support\Facades\URL;
return URL::temporarySignedRoute(
'unsubscribe', now()->addMinutes(30), ['user' => 1]
);
use Illuminate\Support\Facades\Cache;
$lock = Cache::lock('pic' . $id, 10);
if ($lock->get()) {
// генерируем картинку
$lock->release();
}