Enhancements to user switch
This commit is contained in:
16
src/Traits/UserSwitch.php
Normal file
16
src/Traits/UserSwitch.php
Normal 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');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user