Skip to content

andersao/laravel-fiql-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel FIQL Parser

Latest Stable Version Total Downloads Latest Unstable Version License Maintainability Test Coverage

Installation

composer require prettus/laravel-fiql-parser:dev-main

Features

Using Query Builder

use Illuminate\Support\Facades\DB;

$query = DB::table('users')->filter('last_name==foo');
print_r($query->toSql());
// select * from `users` where `last_name` = ?

Using Eloquent model

use Illuminate\Database\Eloquent\Model;

class User extends Model
{
    protected $table = 'users';
}
$query = User::query()->filter('last_name==foo');
print_r($query->toSql());
// select * from `users` where `last_name` = ?

Releases

No releases published

Packages

No packages published

Languages