Kundenhoheit
This commit is contained in:
parent
d8b5206031
commit
dc63fa9fb2
52 changed files with 2436 additions and 557 deletions
|
|
@ -14,3 +14,31 @@ if (! function_exists('make_old_url')) {
|
|||
return config('app.old_url').$path;
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('get_file_last_time')) {
|
||||
function get_file_last_time($value)
|
||||
{
|
||||
if (file_exists($value)) {
|
||||
return filemtime($value);
|
||||
}
|
||||
return date("Ymd-i", time());
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('get_user_attr')) {
|
||||
function get_user_attr($key){
|
||||
if ($user = Auth::user()) {
|
||||
return $user->getSetting($key);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('set_user_attr')) {
|
||||
function set_user_attr($key, $value){
|
||||
if ($user = Auth::user()) {
|
||||
return $user->setSetting([$key => $value]);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue