src/Authentication/MetaUser.php
public function stopMasquerading() {
        if($this->isMasquerading()) {
            // become the real user again
            Auth::logout();
            Auth::login(session('masquerading_user'));
            session(['masquerading_user' => null]);

            // success!
            return true;
        }

        return false;
    }
public function stopMasquerading() {
        if($this->isMasquerading()) {
            // become the real user again
            Auth::logout();
            Auth::login(session('masquerading_user'));
            session(['masquerading_user' => null]);

            // success!
            return true;
        }

        return false;
    }
public function stopMasquerading ( ) { if ( $ this -> isMasquerading ( ) ) { // become the real user again Auth :: logout ( ) ; Auth :: login ( session ( 'masquerading_user' ) ) ; session ( [ 'masquerading_user' => null ] ) ; // success! return true ; } return false ; }
Stops masquerading as another user if we are currently masquerading.
Returns true on success or false otherwise.

@return boolean
Stops masquerading as another user if we are currently masquerading . Returns true on success or false otherwise .