invoiceninja/app/Utils/Traits/UserSessionAttributes.php
David Bomba 4abe61f493
Fix for tests, set return types (#2524)
* View composers

* Saving client and contacts

*  saving client and contacts

* update client job

* unique emails

* fix for tests
2018-11-27 18:24:26 +11:00

20 lines
296 B
PHP

<?php
namespace App\Utils\Traits;
trait UserSessionAttributes
{
public function setCurrentCompanyId($value) : void
{
session(['current_company_id' => $value]);
}
public function getCurrentCompanyId() : int
{
return session('current_company_id');
}
}