@jeffrey_way@taylorotwell@SHaedrich@crynobone I was able to get it to work like the old scope prefix way by changing Illuminate/Database/Eloquent/Model.php#L2405 from `$parameters = [static::query(), ... $parameters];` to `return (new static)->query()->$method(...$parameters);`.
@assertchris@darshansheta@laravelphp The code posted isn't using a short closure, and is explicitly passing the $value variable via the use statement, so yeah, in this case it also needs to pass the $field variable.
@fideloper In our setup, they all use the same dev database, this is used mainly for React changes only. But it wouldn't be too hard to have it set a different DB name in the .env if needed.
@Laravellercom @PovilasKorop That's to say Str::snake() will work for the examples in the tweet, the test cases in the PR are a bit different and snake() indeed won't work for them.
@PovilasKorop I've used it for private broadcast authentication in case a user can't be found, or there's a database error or something just to return false. Error is logged separately by our error handler.