Remove support for Heroku

This commit is contained in:
James Cole
2023-06-27 17:15:53 +02:00
parent 93a544fe53
commit 3ee5e9aa04
8 changed files with 4 additions and 431 deletions

View File

@@ -43,15 +43,11 @@ class AppServiceProvider extends ServiceProvider
public function boot(): void
{
Schema::defaultStringLength(191);
if ('heroku' === config('app.env')) {
URL::forceScheme('https');
}
Response::macro('api', function (array $value) {
$headers = [
'Cache-Control' => 'no-store',
];
$uuid = (string)request()->header('X-Trace-Id');
$uuid = (string)request()->header('X-Trace-Id');
if ('' !== trim($uuid) && (preg_match('/^[a-f\d]{8}(-[a-f\d]{4}){4}[a-f\d]{8}$/i', trim($uuid)) === 1)) {
$headers['X-Trace-Id'] = $uuid;
}