PHP
- 4 ответа
- 0 вопросов
4
Вклад в тег
$key = "Вопрос";
$key = strtolower($key);
echo $arr[$key];
git = "https://github.com/maratmkhitaryan/python-socketio"
gitTokens = git.split('/'); # gitTokens[-1] хранит в себе "python-socketio"
print(gitTokens[-1])
public function handle($request, Closure $next, $guard = null)
{
if (Auth::check()) {
$user = Auth::user();
if ($user->isBanned()) {
// User is banned
}
// User is not banned
}
}