trait Searchable

Searchable trait simplifies the handling of the display of search results on a model

Methods

string
getSearchTitle()

Determine the search title for an item

string
getSearchType()

Determine the model type

DateTime
getSearchDate()

Determine the display time

string
getSearchPreview()

Determine the preview text

string
getSearchUrl()

Determine the canonical url

mixed
getSearchPreviewUrl()

Determine the preview image, if there is one FALSE otherwise

Details

at line 17
string getSearchTitle()

Determine the search title for an item

Return Value

string

at line 40
string getSearchType()

Determine the model type

Return Value

string

at line 58
DateTime getSearchDate()

Determine the display time

Return Value

DateTime Carbon

at line 81
string getSearchPreview()

Determine the preview text

Return Value

string

at line 108
string getSearchUrl()

Determine the canonical url

Return Value

string

at line 122
mixed getSearchPreviewUrl()

Determine the preview image, if there is one FALSE otherwise

Return Value

mixed STRING or BOOLEAN