Attempt to read property "locale" on null
rabol opened this issue · comments
Steen Rabol commented
Hi
just did a new Laravel app
Laravel new blog
composer require laravel/breeze --dev
php artisan breeze:install
and then the steps in the readme
when I access the url: http://blog.test/blog_admin/ i get the error
the error comes from LoadLanguage.php when it try the set the language the first time
quick fix was like this:
$request->attributes->add([
'locale' => $lang->locale ?? 'en',
'language_id' => $lang->id ?? 0
]);
Sam Berry commented
thanks for reporting, it will be fixed soon.
Steen Rabol commented
I did not, that would solve the issue - thanks
Sam Berry commented
welcome. I close the issue.
have a great day.