<script src="{{ asset("js/jsssss.js") }}"></script>
<script src="{{ URL::asset("js/jsssss.js") }}"></script>
<script src="/js/jsssss.js"></script>
<link rel="stylesheet" href="{{ asset("css/csssss.css") }}">
<link rel="stylesheet" href="{{ URL::asset("css/csssss.css") }}">
<link rel="stylesheet" href="/css/csssss.css">
<div class="block">Текст</div>
.block {
background: gray;
color: #FFF;
cursor: pointer;
transition: 3s;
}
.block:hover {
background: blue;
}
svg {
fill: gray;
transition: fill 2s ease;
}
svg:hover {
fill: blue;
}
public static function links($text, $remove = false)
{
$regex = '/(http|https|ftp|ftps)\:\/\/[a-zA-Zа-яА-Я0-9\-\.]+\.[a-zA-Zа-яА-Я]{2,6}(\/\S*)?/u';
if (preg_match($regex, $text, $url)) {
$blank = " target='_blank'";
$parseUrl = explode('//', config('app.url'));
$text = preg_replace_callback($regex, function ($match) use ($remove, $blank, $parseUrl) {
$link = $match[0];
if (preg_match('/' . $parseUrl[1] . '/', $link)) {
$blank = null;
}
return ! $remove ? "<a href='{$link}'{$blank}>{$link}</a>" : null;
}, $text);
}
return $text;
}
body: JSON.stringify({email: email, password:password, _token: tokenHeader})