protected function makeRoute($status, $action = null)
    {
        $route = 'admin.users.confirm';

        return route($route, [$this->user->id, $status, $action]);
    }
protected function makeRoute($status, $action = null)
    {
        $route = 'admin.users.confirm';

        return route($route, [$this->user->id, $status, $action]);
    }
protected function makeRoute ( $ status , $ action = null ) { $ route = 'admin.users.confirm' ; return route ( $ route , [ $ this -> user -> id , $ status , $ action ] ) ; }
A helper to make routes easily.

@param string   $status
@param null|int $action

@return string
A helper to make routes easily .