Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use Laravel\Passport\Passport;

class AppServiceProvider extends ServiceProvider
{
Expand All @@ -21,6 +22,7 @@ public function boot(): void
{
if ($this->app->environment('production')) {
\URL::forceScheme('https');
Passport::hashClientSecrets();
}
}
}
5 changes: 4 additions & 1 deletion bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use Laravel\Passport\Http\Middleware\CreateFreshApiToken;
use Sentry\Laravel\Integration;

return Application::configure(basePath: dirname(__DIR__))
Expand All @@ -13,7 +14,9 @@
health: '/up',
)
->withMiddleware(function (Middleware $middleware) {
//
$middleware->web(append: [
CreateFreshApiToken::class,
]);
})
->withExceptions(function (Exceptions $exceptions) {
Integration::handles($exceptions);
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"cybercog/laravel-ban": "^4.9",
"laravel/framework": "^11.9",
"laravel/jetstream": "^5.3",
"laravel/passport": "^12.0",
"laravel/sanctum": "^4.0",
"laravel/tinker": "^2.9",
"league/flysystem-aws-s3-v3": "^3.0",
Expand Down
Loading
Loading