Casting status column to boolean

parent 82acd339
...@@ -22,6 +22,10 @@ class PageTranslation extends Model ...@@ -22,6 +22,10 @@ class PageTranslation extends Model
'og_type', 'og_type',
]; ];
protected $casts = [
'status' => 'boolean',
];
public function getBodyAttribute($body) public function getBodyAttribute($body)
{ {
event($event = new PageContentIsRendering($body)); event($event = new PageContentIsRendering($body));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment