I have a class that inherits the Illuminate\Database\Query\Builder, and make a custom method for insert on duplicate key update.
Is there any way to append a suffix to an insert() call?
I've looked around for a bit, and there isn't much resources on suffixes or prefixes to SQL queries in Laravel's query builder.
If avoidable I'd hope to copy the body of the original insert() method in Query Builder into my custom one, because it's not good practice.
Any help is appreciate. Thank you!
Please note I don't use Eloquent for various reasons, but it's too much to explain in this question and it is out of scope.