Fixed ViewDetector.

This commit is contained in:
2020-06-24 08:21:00 +02:00
parent dd5a9fdbc6
commit e6244027bd
6 changed files with 804 additions and 1 deletions
@@ -25,7 +25,7 @@ class DetectorServiceProvider extends ServiceProvider
*/
public function boot()
{
Response::macro("detect", function ($view, $args) {
Response::macro("detect", function ($view, $args = []) {
if(Agent::isMobile()) {
return view(config("detector.mobilePath") . "." . $view, $args);
}