diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 452e6b65..efdb3cf0 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -2,6 +2,7 @@ namespace App\Providers; +use Illuminate\Support\Facades\View; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider @@ -11,7 +12,7 @@ class AppServiceProvider extends ServiceProvider */ public function register(): void { - // + $this->registerSharedViewVariables(); } /** @@ -21,4 +22,12 @@ public function boot(): void { // } + + private function registerSharedViewVariables(): void + { + View::share('discordLink', 'https://discord.gg/X62tWNStZK'); + View::share('bskyLink', 'https://bsky.app/profile/nativephp.bsky.social'); + View::share('openCollectiveLink', 'https://opencollective.com/nativephp'); + View::share('githubLink', 'https://github.com/NativePHP'); + } } diff --git a/resources/views/components/header-banner.blade.php b/resources/views/components/header-banner.blade.php index 50a1c4d3..e4ebc690 100644 --- a/resources/views/components/header-banner.blade.php +++ b/resources/views/components/header-banner.blade.php @@ -34,19 +34,19 @@ class="inline-flex items-center transition rounded hover:text-white/80 focus:out diff --git a/resources/views/docs/desktop/1/getting-started/support-policy.md b/resources/views/docs/desktop/1/getting-started/support-policy.md new file mode 100644 index 00000000..8ecf3036 --- /dev/null +++ b/resources/views/docs/desktop/1/getting-started/support-policy.md @@ -0,0 +1,37 @@ +--- +title: Support Policy +order: 500 +--- + +## Support Policy + +NativePHP for Desktop is an open-source project dedicated to providing robust and reliable releases. + +We are committed to supporting the two latest PHP versions, ensuring that our users benefit from the latest features, security updates, and performance improvements. + +__We do not remove support for a PHP version without a major version release.__ + +Additionally, we support each Laravel version until it reaches its official end of life (EOL), ensuring that your applications can remain up-to-date. + +Our support policy reflects our commitment to maintaining high standards of quality and security, providing our users with the confidence they need to build and deploy their applications using NativePHP for Desktop. + +### PHP Versions +| NativePHP Version | Supported PHP Versions | +|-------------------|------------------------| +| ^1.0 | 8.3, 8.4 | + +[PHP: Supported Versions](https://www.php.net/supported-versions.php) + +NativePHP provides methods of bundling your own static PHP binaries. Support is not provided for these. + +### Laravel Versions +| NativePHP Version | Supported PHP Versions | +|-------------------|------------------------| +| ^1.0 | 11.x, 12.x | + +[Laravel: Support Policy](https://laravel.com/docs/master/releases#support-policy) + +## Requesting Support +Support can be obtained by opening an issue on the [NativePHP/laravel]({{ $githubLink }}/laravel/issues) repository or by joining the [Discord]({{ $discordLink }}). + +When requesting support, it is requested that you are using a supported version. If you are not, you will be asked to upgrade to a supported version before any support is provided.