laravel-cross-eloquent-search
laravel-cross-eloquent-search copied to clipboard
Laravel package to search through multiple Eloquent models. Supports sorting, pagination, scoped queries, eager load relationships and searching through single or multiple columns.
This is an automated pull request from [Shift](https://laravelshift.com) to update your package code and dependencies to be compatible with Laravel 11.x. **Before merging**, you need to: - Checkout the `l11-compatibility`...
On a fresh install of this plugin to Laravel 10, Filament 3. Your video walkthrough at https://www.youtube.com/watch?v=WigAaQsPgSA and also this related https://www.youtube.com/watch?v=VzQ0aXi8f80 both refer to a App\Http\Controllers\SearchController.php file ... but...
PR inspired by #65 Added code + tests + documentation
@pascalbaljet Is it possible to search on pivot table? I have the following models (_participant belongsToMany project_), ``` participants id participant_project participant_id project_id first_name last_name projects id ``` Getting `Column...
I have a Laravel 8.54 application. that uses sanctum for authentication. every time I pull in ```protonemedia/laravel-cross-eloquent-search``` I get cors errors on all api calls. I have installed every version...
Such as what ```distint()``` allows
Hi @pascalbaljet I'm trying to sort collection in many ways but not result, each time $complaintsSearch returned unsorted data. Few examples: ``` $complaints = (new Complaint); $sortBy = [['complaints_date','desc'],['city','desc']]; $complaintsSearch...
Hi, When relationship is with string id, it cannot work ``` return Search::addFullText(Model::class, [ 'id', 'name', 'town' => ['name', 'postcode'], ], ['mode' => 'boolean'] ) ->search($seek); ``` With relation belongs...
``` Search::add(Customer::withCount('orders')->select('id', 'first_name', 'last_name', 'email', 'orders_count'), ['first_name', 'last_name'], 'first_name') ->add(Order::orderListSelectColumns(), ['order_number'], 'order_date') ->endWithWildcard() ->includeModelType() ->orderByDesc() ->paginate(25) ->search($searchValue); ``` Want to achieve with customer order count and select specific columns for...