A Laravel package for quickly adding .well-known URLs
well-known
is a Laravel package for quickly adding well-known locations (RFC8615) to a Laravel application, with support for redirects and static URLs.
Installation
You can install the package via composer:
composer require thinkverse/well-known
You can publish the config file with:
php artisan vendor:publish --tag="well-known-config"
This is the contents of the published config file:
return [
'redirects' => [
'change-password' => '/settings/security',
],
'static' => [
'security.txt' => fn () => response('Hello world.'),
],
];
Usage
To use well-known
, install the package and publish the configuration. Now you can update, add and or remove redirects and static .well-known URLs with ease.
A registrar for some well-known URIs can be found at iana.org/assignments/well-known-uris/.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.