4xmen / xshop

Very customizable and easy to use shopping system, open source project based on laravel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getSetting() Error

zqq-nuli opened this issue · comments

  • php : 8.1.21
  • MySQL : 5.7.40
  • Redis : 7.0.11

I encountered two exception errors

one:

  sudo php key:generate 
  
  Could not open input file: key:generate

row:

   composer install --optimize-autoloader --no-dev

   In web.php line 279:
                                                       
  Call to undefined function App\Helpers\getSetting()  
                                                       

   Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

I'd love some help, thank you very much!

I don’t know if I can participate in the Chinese localization function?

why use sudo for key generate?

use this command:

composer install --optimize-autoloader --no-dev --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

No bro, we don't know Chinese, you can add to translate of project and contribute, we are so pleased :)

https://github.com/4xmen/xshop/tree/main/resources/lang