| 1 | <?php |
||
| 8 | class SeoData extends Model implements SeoDataContract |
||
| 9 | { |
||
| 10 | /** @var array */ |
||
| 11 | protected $fillable = [ |
||
| 12 | 'meta', |
||
| 13 | 'open_graph', |
||
| 14 | 'twitter', |
||
| 15 | ]; |
||
| 16 | |||
| 17 | /** @var array */ |
||
| 18 | protected $casts = [ |
||
| 19 | 'meta' => 'array', |
||
| 20 | 'open_graph' => 'array', |
||
| 21 | 'twitter' => 'array', |
||
| 22 | ]; |
||
| 23 | |||
| 24 | 27 | public function __construct(array $attributes = []) |
|
| 30 | |||
| 31 | public function seoable() |
||
| 35 | |||
| 36 | 6 | public function getSeoData(): array |
|
| 48 | |||
| 49 | public function getSeoableModel(): string |
||
| 53 | |||
| 54 | /** {@inheritdoc} */ |
||
| 55 | 12 | public function update(array $attributes = [], array $options = []) |
|
| 59 | } |
||
| 60 |