mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-11-02 04:17:33 -05:00
* View composers * Saving client and contacts * saving client and contacts * update client job * unique emails * fix for tests
20 lines
296 B
PHP
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');
|
|
}
|
|
|
|
}
|