Documentation

Searchable

User Extended by Shawn Clake Class Searchable User Extended is licensed under the MIT license.

Tags
author

Shawn Clake shawn.clake@gmail.com

link
https://github.com/ShawnClake/UserExtended
license

https://github.com/ShawnClake/UserExtended/blob/master/LICENSE MIT

Table of Contents

bootSearchable()  : mixed
Called by the system on runtime, Binds an event to the model to adjust timezones
getSearchableAttributes()  : array<string|int, mixed>
Returns a collection of fields that will be encrypted.
search()  : mixed
Loops through all the different fields to search by
searchUserByAttribute()  : mixed
Preforms the actual search

Methods

bootSearchable()

Called by the system on runtime, Binds an event to the model to adjust timezones

public static bootSearchable() : mixed
Tags
throws
Exception
Return values
mixed

getSearchableAttributes()

Returns a collection of fields that will be encrypted.

public getSearchableAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>

Loops through all the different fields to search by

public search( $phrase) : mixed
Parameters
$phrase :
Return values
mixed

searchUserByAttribute()

Preforms the actual search

protected static searchUserByAttribute( $field,  $phrase) : mixed
Parameters
$field :
$phrase :
Return values
mixed

Search results