src/Routing/Concerns/ControllerResponse.php
public function redirectWithMessage(
        string $to,
        ?string $message = null,
        string $type = 'success'
    ): RedirectResponse {
        return \redirect_with_message($to, $message, $type);
    }
public function redirectWithMessage(
        string $to,
        ?string $message = null,
        string $type = 'success'
    ): RedirectResponse {
        return \redirect_with_message($to, $message, $type);
    }
public function redirectWithMessage ( string $ to , ? string $ message = null , string $ type = 'success' ) : RedirectResponse { return \ redirect_with_message ( $ to , $ message , $ type ) ; }
Queue notification and redirect.

@param  string  $to
@param  string|null  $message
@param  string  $type

@return \Illuminate\Http\RedirectResponse
Queue notification and redirect .