server {
listen 80;
server_name xy.abc.site.com;
location / {
proxy_pass http://xy.abc.site.com:8011;
}
}
$devices = Device::whereHas('attributes', function ($query, $foo) {
$query->where('foo', 'like', $foo);
})->get();
Type error: Too few arguments to function App\Location\Http\Controllers\DeviceController::App\Location\Http\Controllers\{closure}(), 1 passed in /var/www/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php on line 919 and exactly 2 expected