No, there is no backend way to directly open a URL in a new browser tab using the redirect function in Laravel. The redirect function is specifically designed to perform a server-side redirect, which means it will send a response to the client's browser instructing it to navigate to a new URL.
If you want to open a URL in a new tab, you will need to use JavaScript on the client-side. The approach you mentioned in your question, using window.open, is the correct way to achieve this behavior.
Here's an example of how you can modify your code to achieve the desired result:
return view('open_new_tab', ['url' => $url]);
In your open_new_tab.blade.php view file:
<script>
window.open('{{ $url }}', '_blank');
</script>
This will render the JavaScript code in the browser, which will open the specified URL in a new tab.