<?php

// global helpers
function authed() {
    return ! \Auth::guest();
}

function guest() {
    return \Auth::guest();
}

function user() {
    return \Auth::user();
}

function ellipsis($s, $len) {
    return \MightyPork\Utils\Str::ellipsis($s, $len);
}

function faker() {
    static $fac = null;
    if ($fac !== null) return $fac;
    return $fac = Faker\Factory::create();
}