binshops / laravel-blog

Laravel Blog Package/ Laravel CMS. Easiest way to add a blogging system to your Laravel website. Laravel Blog.

Home Page:https://www.binshops.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Attempt to read property "locale" on null

rabol opened this issue · comments

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
        ]);

thanks for reporting, it will be fixed soon.

@rabol did you also call /blog_admin/setup, I think you missed this step.

I did not, that would solve the issue - thanks

welcome. I close the issue.
have a great day.