Enhancements to user switch

This commit is contained in:
Deon George
2018-07-13 14:39:10 +10:00
parent b0fcdaa375
commit ac867a2526
5 changed files with 49 additions and 21 deletions

16
src/Traits/UserSwitch.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
/**
* Check if users have been switched
*/
namespace Leenooks\Traits;
use Session;
trait UserSwitch
{
public function switched()
{
return Session::get('orig_user');
}
}