added ownership

This commit is contained in:
Denis Duliçi
2021-06-17 10:59:07 +03:00
parent de0d26b803
commit a3572de1ec
54 changed files with 253 additions and 37 deletions

View File

@ -24,6 +24,18 @@ if (!function_exists('user')) {
}
}
if (!function_exists('user_id')) {
/**
* Get id of current user.
*
* @return int
*/
function user_id()
{
return optional(user())->id;
}
}
if (!function_exists('company_date_format')) {
/**
* Format the given date based on company settings.