Fixed ViewDetector.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user