1. Go to this page and download the library: Download luffluo/laravel-orm-support 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/ */
luffluo / laravel-orm-support example snippets
declare(strict_types = 1);
namespace Illuminate\Database\Query;
class Builder
{
/**
* Get the current query value bindings in a flattened array.
*
* @return array
*/
public function getBindings()
{
$bindings = Arr::flatten($this->bindings);
if ($this->unions && count($this->bindings['union']) <= 0) {
foreach ($this->unions as $union) {
$bindings = array_merge($bindings, $union['query']->getBindings());
}
}
return $bindings;
}
}
use \Luffluo\LaravelOrmSupport\Traits\MonthlyScale;
class Model
{
use MonthlyScale;
}