PHP code example of hagematech / laravel-query-compat

1. Go to this page and download the library: Download hagematech/laravel-query-compat library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hagematech / laravel-query-compat example snippets


use Hagematech\LaravelQueryCompat\Middleware\QueryCompatMiddleware;

->withMiddleware(function (Middleware $middleware) {
    $middleware->append(QueryCompatMiddleware::class);
})