bagisto / bagisto

Free and open source laravel eCommerce platform
https://bagisto.com
Open Software License 3.0
14.52k stars 2.15k forks source link

Trying to get property 'default_locale' of non-object #1788

Closed bipin244 closed 4 years ago

bipin244 commented 4 years ago

Bug report

Title

*Trying to get property 'default_locale' of non-object

Issue Description

I get error message after bagisto update to latest version /var/www/html/bagistocustomize/packages/Webkul/Shop/src/Http/Middleware/Locale.php app()->setLocale(core()->getDefaultChannel()->default_locale->code);

Preconditions

1. framework Version : 0.1.6
2. Commit id : 3c3676fc14dabcc0178455d35d7743c579bcac83.

Steps to reproduce

1. setup project > login using customer credetial > logout
2. close tab > and reopen project BOOM

Actual result

bipin244 commented 4 years ago

Sorry i forgot to run seeder command

php artisan db:seed