PHP code example of chiragardeshna / dbextender
1. Go to this page and download the library: Download chiragardeshna/dbextender 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/ */
chiragardeshna / dbextender example snippets
return [
/*
|--------------------------------------------------------------------------
| Query Builder
|--------------------------------------------------------------------------
|
| Here you can specify a class which extends default Illuminate\Database\Query\Builder.
| It's important that specified class extend behaviour from default Query Builder class.
|
*/
'builder' => 'App\Query\Builder',
];
namespace App\Query;
use Illuminate\Database\Query\Builder as QueryBuilder;
class Builder extends QueryBuilder
{
// put your methods here.
}