Skip to content

Make every external link has target blank #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config/filament.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

return [

'users' => str_getcsv(env('FILAMENT_USERS') ?: ''),

'users' => str_getcsv(env('FILAMENT_USERS') ?: ''), // From PHP v8.4.0 above function `str_getcsv` was deprecated.
// 'users' => env('FILAMENT_USERS', ''), // If you are using PHP v8.4.0 uncomment this.
/*
|--------------------------------------------------------------------------
| Broadcasting
Expand Down
1 change: 1 addition & 0 deletions resources/views/components/footer.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ class="flex flex-wrap items-center justify-center gap-2.5 *:opacity-0"
>
<a
href="/newsletter"
target="_blank"
class="group relative z-0 flex items-center gap-6 overflow-hidden rounded-2xl bg-cyan-50/50 py-5 pl-6 pr-7 ring-1 ring-black/5 transition duration-300 ease-in-out hover:bg-cyan-50 hover:ring-black/10 md:max-w-lg dark:bg-mirage dark:hover:bg-haiti dark:hover:ring-cloud"
>
{{-- Decorative circle --}}
Expand Down
14 changes: 11 additions & 3 deletions resources/views/components/social-networks-all.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<div>
<a
href="https://x.com/nativephp"
target="_blank"
title="Twitter"
class="group dark:hover:bg-haiti inline-grid size-10 place-items-center rounded-xl bg-zinc-200/80 transition duration-200 hover:bg-gray-200/70 dark:bg-gray-700/40"
>
Expand All @@ -13,6 +14,7 @@ class="size-[1.1rem] text-black transition duration-200 group-hover:text-violet-
<div>
<a
href="https://youtube.com/@NativePHPOfficial"
target="_blank"
title="Youtube"
class="group dark:hover:bg-haiti inline-grid size-10 place-items-center rounded-xl bg-zinc-200/80 transition duration-200 hover:bg-gray-200/70 dark:bg-gray-700/40"
>
Expand All @@ -25,6 +27,7 @@ class="size-[1.4rem] text-black transition duration-200 group-hover:text-violet-
<div>
<a
href="https://bsky.app/profile/nativephp.com"
target="_blank"
title="Bluesky"
class="group dark:hover:bg-haiti inline-grid size-10 place-items-center rounded-xl bg-zinc-200/80 transition duration-200 hover:bg-gray-200/70 dark:bg-gray-700/40"
>
Expand All @@ -36,7 +39,8 @@ class="size-[1.1rem] text-black transition duration-200 group-hover:text-violet-

<div>
<a
href="https://discord.gg/X62tWNStZK"
href="{{ $discordLink }}"
target="_blank"
title="Go to discord server"
class="group dark:hover:bg-haiti inline-grid size-10 place-items-center rounded-xl bg-zinc-200/80 transition duration-200 hover:bg-gray-200/70 dark:bg-gray-700/40"
>
Expand All @@ -48,7 +52,8 @@ class="size-[1.1rem] text-black transition duration-200 group-hover:text-violet-

<div>
<a
href="https://opencollective.com/nativephp"
href="{{ $openCollectiveLink }}"
target="_blank"
title="NativePHP on Open Collective"
class="group dark:hover:bg-haiti inline-grid size-10 place-items-center rounded-xl bg-zinc-200/80 transition duration-200 hover:bg-gray-200/70 dark:bg-gray-700/40"
>
Expand All @@ -60,7 +65,8 @@ class="size-[1.1rem] text-black transition duration-200 group-hover:text-violet-

<div>
<a
href="https://github.com/nativephp"
href="{{ $githubLink }}"
target="_blank"
title="Source code of NativePHP"
class="group dark:hover:bg-haiti inline-grid size-10 place-items-center rounded-xl bg-zinc-200/80 transition duration-200 hover:bg-gray-200/70 dark:bg-gray-700/40"
>
Expand All @@ -73,6 +79,7 @@ class="size-[1.1rem] transition duration-200 group-hover:fill-violet-400 dark:fi
<div>
<a
href="https://pinkary.com/@nativephp"
target="_blank"
title="NativePHP on Pinkary"
class="group dark:hover:bg-haiti inline-grid size-10 place-items-center rounded-xl bg-zinc-200/80 transition duration-200 hover:bg-gray-200/70 dark:bg-gray-700/40"
>
Expand All @@ -85,6 +92,7 @@ class="size-[1.6rem] text-black transition duration-200 group-hover:text-violet-
<div>
<a
href="https://www.linkedin.com/company/nativephp/"
target="_blank"
title="NativePHP on LinkedIn"
class="group dark:hover:bg-haiti inline-grid size-10 place-items-center rounded-xl bg-zinc-200/80 transition duration-200 hover:bg-gray-200/70 dark:bg-gray-700/40"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class="opacity-0"
>
<a
href="https://www.redgalaxy.co.uk/"
target="_blank"
class="inline-grid h-16 w-60 shrink-0 place-items-center rounded-2xl bg-gray-100 p-5 transition duration-200 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-mirage dark:hover:bg-haiti dark:hover:ring-cloud"
title="Learn more about RedGalaxy"
aria-label="Visit RedGalaxy website"
Expand All @@ -24,6 +25,7 @@ class="opacity-0"
>
<a
href="https://sevalla.com/?utm_source=nativephp&utm_medium=Referral&utm_campaign=homepage"
target="_blank"
class="inline-grid h-16 w-60 shrink-0 place-items-center rounded-2xl bg-gray-100 p-5 transition duration-200 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-mirage dark:hover:bg-haiti dark:hover:ring-cloud"
title="Learn more about Sevalla"
aria-label="Visit Sevalla website"
Expand Down Expand Up @@ -61,6 +63,7 @@ class="opacity-0"
>
<a
href="https://www.kaashosting.nl/?lang=en"
target="_blank"
class="inline-grid h-16 w-60 shrink-0 place-items-center rounded-2xl bg-gray-100 p-5 transition duration-200 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-mirage dark:hover:bg-haiti dark:hover:ring-cloud"
title="Learn more about KaasHosting"
aria-label="Visit KaasHosting website"
Expand All @@ -81,6 +84,7 @@ class="opacity-0"
>
<a
href="https://www.quantumweb.co/"
target="_blank"
class="inline-grid h-16 w-60 shrink-0 place-items-center rounded-2xl bg-gray-100 p-5 transition duration-200 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-mirage dark:hover:bg-haiti dark:hover:ring-cloud"
title="Learn more about Quantumweb"
aria-label="Visit Quantumweb website"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class="opacity-0"
>
<a
href="https://beyondco.de/?utm_source=nativephp&utm_medium=logo&utm_campaign=nativephp"
target="_blank"
title="Learn more about BeyondCode"
aria-label="Visit BeyondCode website"
class="inline-grid h-32 w-60 shrink-0 place-items-center rounded-2xl bg-gray-100 p-5 transition duration-200 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-mirage dark:hover:bg-haiti dark:hover:ring-cloud"
Expand Down Expand Up @@ -35,6 +36,7 @@ class="opacity-0"
>
<a
href="https://laradevs.com/?ref=nativephp"
target="_blank"
title="Learn more about Laradevs"
aria-label="Visit Laradevs website"
class="inline-grid h-32 w-60 shrink-0 place-items-center rounded-2xl bg-gray-100 p-5 transition duration-200 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-mirage dark:hover:bg-haiti dark:hover:ring-cloud"
Expand Down
10 changes: 5 additions & 5 deletions resources/views/docs/desktop/1/digging-deeper/child-processes.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ appropriate for the problem you're trying to solve:
### Queues

The [queue runner](queues) is useful for very simply offloading _Laravel_ tasks to the background. Each task must be a
Laravel queued [Job](https://laravel.com/docs/queues#creating-jobs).
Laravel queued <a href="https://laravel.com/docs/queues#creating-jobs" target="_blank">Job</a>.

Any queued jobs that don't get processed before your app is quit, will get processed when your application (and the
queue runner) starts again.

### Scheduler

The Laravel scheduler runs as normal (every minute) inside a NativePHP application. You can add
[scheduled tasks](https://laravel.com/docs/scheduling) to your application just as you normally would, to have them run
<a href="https://laravel.com/docs/scheduling" target="_blank">scheduled tasks</a> to your application just as you normally would, to have them run
on a regular schedule.

Any scheduled tasks that would have run while your application isn't running will be skipped.
Expand All @@ -62,9 +62,9 @@ only be able to run while your application is running.**

PHP has good built-in support for running arbitrary programs in separate processes. For example:

- [`shell_exec`](https://www.php.net/manual/en/function.shell-exec.php) allows you to run commands and return their
- <a href="https://www.php.net/manual/en/function.shell-exec.php" target="_blank">`shell_exec`</a> allows you to run commands and return their
output to your application.
- [`proc_open`](https://www.php.net/manual/en/function.proc-open.php) allows you to spin up a command with more control
- <a href="https://www.php.net/manual/en/function.proc-open.php" target="_blank">`proc_open`</a> allows you to spin up a command with more control
over how its input and output streams are handled.

While these can be used in your NativePHP application, consider that they:
Expand Down Expand Up @@ -120,7 +120,7 @@ ChildProcess::start(
### Persistent Processes

You may mark a process as `persistent` to indicate that the runtime should make sure that once it has been started it
is always running. This works similarly to tools like [`supervisord`](http://supervisord.org/), ensuring that the
is always running. This works similarly to tools like <a href="http://supervisord.org/" target="_blank">`supervisord`</a>, ensuring that the
process gets booted up again in case it crashes.

```php
Expand Down
6 changes: 3 additions & 3 deletions resources/views/docs/desktop/1/digging-deeper/databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You can interact with SQLite via PDO or an ORM, such as Eloquent, in exactly the

## SQLite

[SQLite](https://sqlite.org/) is a feature-rich, portable, lightweight, file-based database. It's perfect for native
<a href="https://sqlite.org/" target="_blank">SQLite</a> is a feature-rich, portable, lightweight, file-based database. It's perfect for native
applications that need persistent storage of complex data structures with the speed and tooling of SQL.

Its small footprint and minimal dependencies make it ideal for cross-platform, native applications. Your users
Expand Down Expand Up @@ -48,7 +48,7 @@ it doesn't modify any other SQLite databases you may already be using.
When writing migrations, you need to consider any special recommendations for working with SQLite.

For example, prior to Laravel 11, SQLite foreign key constraints are turned off by default. If your application relies
upon foreign key constraints, [you need to enable SQLite support for them](https://laravel.com/docs/database#configuration) before running your migrations.
upon foreign key constraints, <a href="https://laravel.com/docs/database#configuration" target="_blank">you need to enable SQLite support for them</a> before running your migrations.

**It's important to test your migrations on prod builds before releasing updates!** You don't want to accidentally
delete your user's data when they update your app.
Expand Down Expand Up @@ -83,7 +83,7 @@ php artisan native:migrate:fresh
## Seeding

When developing, it's especially useful to seed your database with sample data. If you've set up
[Database Seeders](https://laravel.com/docs/seeding), you can run these using the `native:db:seed` command:
<a href="https://laravel.com/docs/seeding" target="_blank">Database Seeders</a>, you can run these using the `native:db:seed` command:

```shell
php artisan native:db:seed
Expand Down
4 changes: 2 additions & 2 deletions resources/views/docs/desktop/1/digging-deeper/files.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ order: 300

Working with files in NativePHP is just like working with files in a regular Laravel application.
To achieve this, NativePHP rewrites the `Application::$storagePath()` (and thus `app()->storagePath()` and the `storage_path()` helper)
to the [Electron `app.getPath('appData')` path](https://www.electronjs.org/docs/latest/api/app#appgetpathname),
to the <a href="https://www.electronjs.org/docs/latest/api/app#appgetpathname" target="_blank">Electron `app.getPath('appData')` path</a>,
which is different for each operating system.

This means that you can continue to use Laravel's `Storage` facade to store and retrieve files on your user's file
Expand All @@ -31,7 +31,7 @@ It's also the location where your SQLite database will be stored.
### Storing files elsewhere

NativePHP doesn't interfere with any of your _existing_ filesystem configuration, so you may continue to configure
[Filesystem](https://laravel.com/docs/filesystem) as you normally would, however you should be aware that it does
<a href="https://laravel.com/docs/filesystem" target="_blank">Filesystem</a> as you normally would, however you should be aware that it does
_add_ some new default filesystems for your convenience.

Consider that your users want to store their files in locations other than the obscure `appdata` directories on their
Expand Down
6 changes: 3 additions & 3 deletions resources/views/docs/desktop/1/digging-deeper/php-binaries.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ On top of this, fewer PHP extensions means a smaller application size and attack
extensions has both performance & [security](security) implications for your apps.

The extensions that are included in the default binaries are defined in the
[`php-extensions.txt`](https://github.com/NativePHP/php-bin/blob/main/php-extensions.txt) in the `php-bin` repo.
<a href="https://github.com/NativePHP/php-bin/blob/main/php-extensions.txt" target="_blank">`php-extensions.txt`</a> in the `php-bin` repo.

If you think an extension is missing that would make sense as a default extension, feel free to
[make a feature request](https://github.com/nativephp/laravel/issues/new/choose) for it.
<a href="{{ $githubLink }}/laravel/issues/new/choose" target="_blank">make a feature request</a> for it.

## Building custom binaries

NativePHP uses the awesome [`static-php-cli`](https://static-php.dev/) library to build distributable PHP binaries.
NativePHP uses the awesome <a href="https://static-php.dev/" target="_blank">`static-php-cli`</a> library to build distributable PHP binaries.

You may use this too to build your own binaries. Of course, you may build static binaries however you prefer.

Expand Down
2 changes: 1 addition & 1 deletion resources/views/docs/desktop/1/digging-deeper/queues.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ order: 500

Queueing tasks to be run in the background is a critical part of creating a great user experience.

NativePHP has built-in support for Laravel's [Queues](https://laravel.com/docs/queues).
NativePHP has built-in support for Laravel's <a href="https://laravel.com/docs/queues" target="_blank">Queues</a>.

## Queueing a job
If you're familiar with queueing jobs in Laravel, you should feel right at home. There's nothing special you need to do.
Expand Down
6 changes: 3 additions & 3 deletions resources/views/docs/desktop/1/getting-started/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ C:\path\to\your\app\dist\win-unpacked\resources\app.asar.unpacked\resources\php\
```

## Still stuck?
If you've found a bug, please [open an issue](https://github.com/nativephp/laravel/issues/new) on GitHub.
If you've found a bug, please <a href="{{ $githubLink }}/laravel/issues/new" target="_blank">open an issue</a> on GitHub.

There's also [Discussions](https://github.com/orgs/NativePHP/discussions) and
[Discord](https://discord.gg/X62tWNStZK) for live chat.
There's also <a href="https://github.com/orgs/nativephp/discussions" target="_blank">Discussions</a> and
[Discord](/discord) for live chat.

Come join us! We want you to succeed.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ supports hot reloading of certain files within its core and your application, bu
source code for changes. It is left to you to determine how you want to approach this.

If you're using Vite, hot reloading will just work inside your app as long as you've booted your Vite dev server and
[included the Vite script tag](https://laravel.com/docs/vite#loading-your-scripts-and-styles) in your views
<a href="https://laravel.com/docs/vite#loading-your-scripts-and-styles" target="_blank">included the Vite script tag</a> in your views
(ideally in your app's main layout file).

You can do this easily in Blade using the `@@vite` directive.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ order: 100
The best development experience for NativePHP is to have PHP and Node running on your development machine directly.

If you're using Mac or Windows, the most painless way to get PHP and Node up and running on your system is with
[Laravel Herd](https://herd.laravel.com). It's fast and free!
<a href="https://herd.laravel.com" target="_blank">Laravel Herd</a>. It's fast and free!

Please note that, whilst it's possible to develop and run your application from a virtualized environment or container,
you may encounter more unexpected issues and have more manual steps to create working builds.

### Laravel

NativePHP is built to work best with Laravel. You can install it into an existing Laravel application, or
[start a new one](https://laravel.com/docs/installation).
<a href="https://laravel.com/docs/installation" target="_blank">start a new one</a>.

## Install a NativePHP runtime

Expand Down
18 changes: 9 additions & 9 deletions resources/views/docs/desktop/1/getting-started/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,24 +72,24 @@ that puts cowboy hats on every smiley-face emoji it sees.

(You should totally build that last one.)

Need some inspiration? [Check out our repository of awesome projects](https://github.com/NativePHP/awesome-nativephp) created by people like you!
Need some inspiration? <a href="https://github.com/NativePHP/awesome-nativephp" target="_blank">Check out our repository of awesome projects</a> created by people like you!

## What's next?

Go read the docs! We've tried to make them as comprehensive as possible, but if you find something missing, please
feel free to [contribute](https://github.com/nativephp/nativephp.com).
feel free to <a href="https://github.com/nativephp/nativephp.com" target="_blank">contribute</a>.

This site and all the NativePHP for Desktop repositories are open source and available on [GitHub](https://github.com/nativephp).
This site and all the NativePHP for Desktop repositories are open source and available on <a href="https://github.com/nativephp" target="_blank">GitHub</a>.

Ready to jump in? [Let's get started](installation).

## Credits

NativePHP wouldn't be possible without the following projects and the hard work of all of their wonderful contributors:

- [PHP](https://php.net)
- [Electron](https://electronjs.org)
- [Tauri](https://tauri.app)
- [Laravel](https://laravel.com)
- [Symfony](https://symfony.com)
- [Static PHP CLI](https://github.com/crazywhalecc/static-php-cli/)
- <a href="https://php.net" target="_blank">PHP</a>
- <a href="https://electronjs.org" target="_blank">Electron</a>
- <a href="https://tauri.app" target="_blank">Tauri</a>
- <a href="https://laravel.com" target="_blank">Laravel</a>
- <a href="https://symfony.com" target="_blank">Symfony</a>
- <a href="https://github.com/crazywhalecc/static-php-cli/" target="_blank">Static PHP CLI</a>
6 changes: 3 additions & 3 deletions resources/views/docs/desktop/1/getting-started/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ NativePHP for Desktop is **production-ready**. So you should feel completely rea
with NativePHP.

But we always need your help! If you spot any bugs or feel that there are any features missing, be sure to share
your ideas and questions through the [forum](https://github.com/orgs/nativephp/discussions), by
[raising issues](https://github.com/nativephp/laravel/issues/new/choose)/reporting bugs, and discussing on
[Discord](https://discord.gg/X62tWNStZK).
your ideas and questions through the <a href="https://github.com/orgs/nativephp/discussions" target="_blank">forum</a>, by
<a href="https://github.com/nativephp/laravel/issues/new/choose" target="_blank">raising issues/reporting bugs</a>, and discussing on
[Discord](/discord).

<aside class="relative z-0 mt-5 overflow-hidden rounded-2xl bg-pink-50 px-5 ring-1 ring-black/5 dark:bg-pink-600/10">

Expand Down
Loading