logo, improved listing, some helpers, mail confirms table, confirmed flag, user title column..
This commit is contained in:
@@ -1,3 +1,24 @@
|
||||
<?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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user