public function activate($token)
    {
        if ($this->service->activateUser($token)) {
            return redirect('dashboard')->with('message', 'Your account was activated');
        }

        return view('auth.activate.email')->withErrors(['Could not validate your token']);
    }
public function activate($token)
    {
        if ($this->service->activateUser($token)) {
            return redirect('dashboard')->with('message', 'Your account was activated');
        }

        return view('auth.activate.email')->withErrors(['Could not validate your token']);
    }
public function activate ( $ token ) { if ( $ this -> service -> activateUser ( $ token ) ) { return redirect ( 'dashboard' ) -> with ( 'message' , 'Your account was activated' ) ; } return view ( 'auth.activate.email' ) -> withErrors ( [ 'Could not validate your token' ] ) ; }
Activate a user account

@return User
Activate a user account