base_leaf_app/utils.php
<?php
function checkAuth()
{
$user = auth()->user();
if (!$user)
{
header("HTTP/1.1 403 Forbidden");
header("Location: /qca/login");
die();
}
}
app()->get('/utils', function () {
//response()->render('home');
echo "utils";
});
?>