datatable.directory codebase
https://datatable.directory/
24 lines
384 B
24 lines
384 B
<?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();
|
|
}
|
|
|