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
While this package aims to cover common functionality, there are times when you need support for a function quickly or a custom function that is unique to your application. This is easy to do with two methods from the `boot()` method of your service provider class:
99
+
100
+
```php
101
+
<?php
102
+
103
+
class MySQLiteServiceProvider extends ServiceProvider
-`addRewriteRule()` will replace a string in your query using regex, should Sqlite have a native function that could be used as a 1:1 replacement.
121
+
-`addFunction()` uses PDO `sqliteCreateFunction()` to register a custom function with PHP in the event that Sqlite doesn't have a drop-in replacement or if logic is more complicated. [Read More][sqlitecreatefunction].
122
+
96
123
# Contributing
97
124
Want to file a bug, contribute some code, improve documentation, or request a feature? Awesome Sauce! Read up on our guidelines for [contributing][contributing]. All contributions must follow our [Code of Conduct][codeofconduct].
0 commit comments