Searchable
Searchable trait simplifies the handling of the display of search results on a model
Table of Contents
- getSearchDate() : DateTime
- Determine the display time
- getSearchPreview() : string
- Determine the preview text
- getSearchPreviewUrl() : mixed
- Determine the preview image, if there is one FALSE otherwise
- getSearchTitle() : string
- Determine the search title for an item
- getSearchType() : string
- Determine the model type
- getSearchUrl() : string
- Determine the canonical url
Methods
getSearchDate()
Determine the display time
public
getSearchDate() : DateTime
Return values
DateTime —Carbon
getSearchPreview()
Determine the preview text
public
getSearchPreview() : string
Return values
string —getSearchPreviewUrl()
Determine the preview image, if there is one FALSE otherwise
public
getSearchPreviewUrl() : mixed
Return values
mixed —STRING or BOOLEAN
getSearchTitle()
Determine the search title for an item
public
getSearchTitle() : string
Return values
string —getSearchType()
Determine the model type
public
getSearchType() : string
Return values
string —getSearchUrl()
Determine the canonical url
public
getSearchUrl() : string