Enabled user registration
This commit is contained in:
@@ -25,6 +25,18 @@ class Frame extends Model
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* For cockroachDB, content is a "resource stream"
|
||||
*
|
||||
* @return bool|string
|
||||
*/
|
||||
public function getContentAttribute()
|
||||
{
|
||||
return is_resource($this->attributes['content'])
|
||||
? stream_get_contents($this->attributes['content'])
|
||||
: $this->attributes['content'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the Page Number
|
||||
*
|
||||
|
Reference in New Issue
Block a user