How to open a link? #173
-
Is there a way to redirect users away from the app to a browser, e.g. open an external link? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I tested it out, but links appear for now to only work via the Applications Menu & Menu Bar. |
Beta Was this translation helpful? Give feedback.
-
Found a solution. NativePHP has Full example <a
class="block w-20 h-6 bg-blue-500 rounded-lg text-center text-white hover:bg-blue-400"
href="#!"
wire:click.prevent="openExternal('{{ $meeting->url }}')"
>
Join
</a> use Native\Laravel\Facades\Shell;
//
public function openExternal(string $url): void
{
Shell::openExternal($url);
} |
Beta Was this translation helpful? Give feedback.
-
Very good! |
Beta Was this translation helpful? Give feedback.
Found a solution.
NativePHP has
Shell
helper class. So to open an external url you can callShell::openExternal($url)
Full example