Stevemo\Cpanel\Controllers\UsersThrottlingController::getStatus PHP Method

getStatus() public method

Show the user Throttling status
Author: Steve Montambeault
public getStatus ( integer $id ) : Illuminate\Http\RedirectResponse | Illuminate\View\View
$id integer
return Illuminate\Http\RedirectResponse | Illuminate\View\View
    public function getStatus($id)
    {
        try {
            $throttle = $this->users->getUserThrottle($id);
            $user = $throttle->getUser();
            return View::make(Config::get('cpanel::views.throttle_status'))->with('user', $user)->with('throttle', $throttle);
        } catch (UserNotFoundException $e) {
            return Redirect::route('admin.users.index')->with('error', $e->getMessage());
        }
    }
UsersThrottlingController