Metadata
class Metadata implements JsonSerializable, Jsonable
Traits
Properties
protected array | $timestamps | from Timestamps | |
protected array | $attributes | from Accessors | |
array | $modified | from Accessors | |
protected | $appends | ||
string|null | $langauge | Document language code | |
string|null | $site | The documents domain name | |
string|null | $title | Document title | |
string|null | $image | The first encountered image, or the og:image if available | |
string|null | $description | Document description | |
array | $keywords | Keywords | |
string | $canonical | The document canonical URL, if none found, the original request URL | |
string|null | $icon | The document favicon | |
string|null | $author | The document author | |
string|null | $copyright | The document copyright | |
string|null | $amphtml | Link to the AMP version of this document | |
DateTimeInterface|Carbon | $scraped | The date and time when this document was scraped |
Methods
__construct(array $attributes = [])
No description
array
__debugInfo()
No description
string
getIdAttribute()
No description
string
getHashAttribute()
No description
array
jsonSerialize()
No description
string
toJson(int $options = 0)
No description
Details
in
Timestamps at line 18
serializeTimestamp($value)
in
Accessors at line 30
array
toArray()
Get the raw attributes