-
Notifications
You must be signed in to change notification settings - Fork 781
Closed
Description
Laravel Version
11.0
PHP Version
8.2.16-fpm
Database Driver & Version
postgres:15.6-alpine
Description
This error happens when I use Passport's "Consuming Your API With JavaScript" feature and activate the middleware CreateFreshApiToken::class.
Error message: Carbon\Carbon::rawAddUnit(): Argument laravel/framework#3 ($value) must be of type int|float, string given, called in /var/www/vendor/nesbot/carbon/src/Carbon/Traits/Units.php on line 324
Error details: link to error details
I want to create an issue for this on GitHub.
Steps To Reproduce
- Install Passport: composer require laravel/passport
- Run Passport migrations: php artisan migrate
- Modify passport config in AppServiceProvider
Passport::cookie('SPA-TOKEN');
Passport::hashClientSecrets();
- Use Passport's CreateFreshApiToken middleware in web middleware group.
- Make new route in web.php and put this on it.
Auth::loginUsingId(1)
In next refresh application has crash
Metadata
Metadata
Assignees
Labels
No labels