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
Still an issue and Laravel now uses this method internally, so there is a crash with MongoDB
RuntimeException: This database engine does not support inserting while ignoring errors.
at Illuminate\Database\Query\Grammars\Grammar->compileInsertOrIgnore(Grammar.php:1197)
at Illuminate\Database\Query\Builder->insertOrIgnore(Builder.php:3778)
at Illuminate\Cache\DatabaseStore->add(DatabaseStore.php:209)
at Illuminate\Cache\Repository->add(Repository.php:343)
at Illuminate\Cache\RateLimiter->increment(RateLimiter.php:163)
at Illuminate\Cache\RateLimiter->hit(RateLimiter.php:148)
at FlowBox\Http\Controllers\Auth\LoginController->incrementLoginAttempts(ThrottlesLogins.php:35)
at FlowBox\Http\Controllers\Auth\LoginController->login(AuthenticatesUsers.php:57)
at Illuminate\Routing\Controller->callAction(Controller.php:54)
at FlowBox\Http\Controllers\Controller->callAction(Controller.php:157)
at Illuminate\Routing\ControllerDispatcher->dispatch(ControllerDispatcher.php:43)
... 63 more
MongoDB Grammar just extends the framework Grammar without any changes, so this method remains unimplemented
/**
* Compile an insert ignore statement into SQL.
*
* @param \Illuminate\Database\Query\Builder $query
* @param array $values
* @return string
*
* @throws \RuntimeException
*/
public function compileInsertOrIgnore(Builder $query, array $values)
{
throw new RuntimeException('This database engine does not support inserting while ignoring errors.');
}
The recently released laravel version 5.8.33 has a new feature - insertOrIgnore.
I think that this is a very useful feature and would love to see it implemented in this project.
v5.8.33 release notes
The text was updated successfully, but these errors were encountered: