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
.env
and put theAPP_DEBUG=true
DEBUGBAR_ENABLED=true
After that you will see a error message instead of server error. When you done editing the.env
file 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
ReplaceX
with your id. You can find your id in that tableDB_SILKROAD.users
theid
!
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.php
and search forlocale_enabled
, there you can delete the other language. After that you need to run that commandphp artisan config:cache
to recache your whole config and make the changes visible.But if you are saying you need one more language, check the
resources/lang
folder. For each language you need a separated folder. That folder name is the key in thelocale_enabled
array.
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 pull
but 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