update env.example and fix token-issue

This commit is contained in:
Mohit Panjwani
2019-11-19 19:26:13 +05:30
parent 953598b2e8
commit b3aeafef47
7 changed files with 14 additions and 209981 deletions

View File

@ -1,15 +1,15 @@
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_ENV=production
APP_KEY=base64:kgk/4DW1vEVy7aEvet5FPp5un6PIGe/so8H0mvoUtW0=
APP_DEBUG=false
APP_LOG_LEVEL=debug
APP_URL=http://localhost
APP_URL=http://crater.test
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
DB_DATABASE=crater
DB_USERNAME=root
DB_PASSWORD=bytefury
BROADCAST_DRIVER=log
CACHE_DRIVER=file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,4 @@
{
"/assets/js/app.js": "/assets/js/app.js",
"/assets/css/laraspace.css": "/assets/css/laraspace.css",
"/assets/js/app.js.map": "/assets/js/app.js.map",
"/assets/css/laraspace.css.map": "/assets/css/laraspace.css.map"
"/assets/js/app.js": "/assets/js/app.js?id=d025b2d85b5f0847a142",
"/assets/css/laraspace.css": "/assets/css/laraspace.css?id=361d275866b6299acb36"
}

View File

@ -92,8 +92,7 @@ global.axios.interceptors.response.use(undefined, function (err) {
if (err.response.data.error === 'invalid_credentials') {
window.toastr['error']('Invalid Credentials')
}
if (err.response.data && err.response.statusText === 'Unauthorized') {
if (err.response.data && (err.response.statusText === 'Unauthorized' || err.response.data === ' Unauthorized.')) {
store.dispatch('auth/logout', true)
} else {
throw err