for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
if (!function_exists('blameable_user')) {
/**
* Get the blameable User identifier.
*
* @return mixed
*/
function blameable_user()
{
return ($user = \Auth::user()) ? $user->getKey() : null;
}