FAQ
Frequently Asked Questions
- Server Error - Debug on
- How can I see the backend?
- Missing Tables
- Tables are empty
- Images are not shown
- I don't need multi language
- Discord widget not working
- There is no tracking information for current branch.
Debug on
You want to see the error message instead of "Server Error xxx"? Then edit the
.envand put theAPP_DEBUG=trueDEBUGBAR_ENABLED=trueAfter that you will see a error message instead of server error. When you done editing the.envfile runphp artisan config:cache
How can I see the backend?
Probably there is no account registered yet that has the rights.
TableDB_SILKROAD.model_has_roles
ReplaceXwith your id. You can find your id in that tableDB_SILKROAD.userstheid!
| role_id | model_type | model_id |
|---|---|---|
| 3 | App\User |
X |
Hint: You can use the command php artisan import:silkroad-accounts to get all your Silkroad Accounts into that web database. The Accounts need a Name + E-Mail set.
Missing Tables
You forgot to run that command
php artisan migrate
Tables are empty
You forgot to run that command
php artisan db:seed
Images are not shown
You forgot to run that command
php artisan storage:link
Multi language
If you don't need multi language for your page, you can simple delete the other language. Just open the
config/app.phpand search forlocale_enabled, there you can delete the other language. After that you need to run that commandphp artisan config:cacheto recache your whole config and make the changes visible.But if you are saying you need one more language, check the
resources/langfolder. For each language you need a separated folder. That folder name is the key in thelocale_enabledarray.
Discord widget
Your Discord server needs server-widgets activated. Then it can take some time to make it work.
Git pull
When you are trying to use
git pullbut there is a error message that there is no tracking information for current branch use this Command.
git remote add origin https://github.com/Devsome/silkroad-laravel.git
git pull origin master --rebase