Download the PHP package devhereco/simple-eloquent-search without Composer
On this page you can find all versions of the php package devhereco/simple-eloquent-search. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download devhereco/simple-eloquent-search
More information about devhereco/simple-eloquent-search
Files in devhereco/simple-eloquent-search
Download devhereco/simple-eloquent-search
More information about devhereco/simple-eloquent-search
Files in devhereco/simple-eloquent-search
Vendor devhereco
Package simple-eloquent-search
Short Description A Laravel package for adding search functionality to models.
License MIT
Homepage https://github.com/devhereco/Simple-Eloquent-Search
Package simple-eloquent-search
Short Description A Laravel package for adding search functionality to models.
License MIT
Homepage https://github.com/devhereco/Simple-Eloquent-Search
Please rate this library. Is it a good library?
Informations about the package simple-eloquent-search
Simple Eloquent Search
A laravel package to search via your models .
installation :
composer require devhereco/simple-eloquent-search
Usage :
- use
Searchabletrait in your model - Define
$searchableproperty in your model to select which columns to search in
Example :
use devhereco\SimpleEloquentSearch\Searchable;
class User extends Model {
use Searchable ;
protected $searchable = ['name', 'posts.title'];
public function posts(){
return $this->hasMany(Post::class);
}
}
// Calling search method
Model::search('ABC')->get();All versions of simple-eloquent-search with dependencies
PHP Build Version
Package Version
The package devhereco/simple-eloquent-search contains the following files
Loading the files please wait ...