You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A semi multi-tenant app that switches view path depending on the domain name visited. Upgraded the code recently to laravel 8; no issues.
Within AppServiceProvider the view directory is changed: config(['view.paths' => [ resource_path() . '/views/' . $site ] ]);
Once honeypot is installed, view.paths is reset to the default value (I presume the value in config/view.php). However this happens somewhere in the view logic; the altered view.paths variable is correct in the controller right up to the point of returning the view. No views then work as the blade files cannot be found.
I've gone through the honeypot code and can't find where or why this is happening. Do I need to change how I approach altering the view folder, or can I stop honeypot from wiping/ignoring this setting?
This discussion was converted from issue #81 on June 30, 2021 10:06.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
A semi multi-tenant app that switches view path depending on the domain name visited. Upgraded the code recently to laravel 8; no issues.
Within AppServiceProvider the view directory is changed:
config(['view.paths' => [ resource_path() . '/views/' . $site ] ]);
Once honeypot is installed, view.paths is reset to the default value (I presume the value in config/view.php). However this happens somewhere in the view logic; the altered view.paths variable is correct in the controller right up to the point of returning the view. No views then work as the blade files cannot be found.
I've gone through the honeypot code and can't find where or why this is happening. Do I need to change how I approach altering the view folder, or can I stop honeypot from wiping/ignoring this setting?
Beta Was this translation helpful? Give feedback.
All reactions