1 | <?php namespace Arcanedev\LaravelSeo\Models; |
||
22 | class Meta extends AbstractModel |
||
23 | { |
||
24 | /* ------------------------------------------------------------------------------------------------ |
||
25 | | Properties |
||
26 | | ------------------------------------------------------------------------------------------------ |
||
27 | */ |
||
28 | /** |
||
29 | * The attributes that are mass assignable. |
||
30 | * |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $fillable = ['title', 'description', 'keywords', 'metas', 'noindex']; |
||
34 | |||
35 | /** |
||
36 | * The attributes that should be casted to native types. |
||
37 | * |
||
38 | * @var array |
||
39 | */ |
||
40 | protected $casts = [ |
||
41 | 'id' => 'integer', |
||
42 | 'seoable_id' => 'integer', |
||
43 | 'metas' => 'collection', |
||
44 | 'noindex' => 'boolean', |
||
45 | ]; |
||
46 | |||
47 | /* ------------------------------------------------------------------------------------------------ |
||
48 | | Constructor |
||
49 | | ------------------------------------------------------------------------------------------------ |
||
50 | */ |
||
51 | /** |
||
52 | * Create a new Eloquent model instance. |
||
53 | * |
||
54 | * @param array $attributes |
||
55 | */ |
||
56 | 12 | public function __construct(array $attributes = []) |
|
62 | |||
63 | /* ------------------------------------------------------------------------------------------------ |
||
64 | | Relationships |
||
65 | | ------------------------------------------------------------------------------------------------ |
||
66 | */ |
||
67 | /** |
||
68 | * @return \Illuminate\Database\Eloquent\Relations\MorphTo |
||
69 | */ |
||
70 | 3 | public function seoable() |
|
74 | } |
||
75 |