Files
monica/app/Entry.php
T
Régis Freyd b65a7b7a73 Remove encryption in the journal table (#199)
I used to encrypt this but the decryption randomly generates problems sometimes. I wonder why. Is it because of special characters that are included and get corrupted while encrypted? I don't know, but I've found that removing the encryption (which is not necessary anyway), solves the problem - until we find a better solution.
2017-06-10 23:10:19 -04:00

29 lines
417 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Entry extends Model
{
protected $table = 'entries';
public function getPost()
{
if (is_null($this->post)) {
return null;
}
return $this->post;
}
public function getTitle()
{
if (is_null($this->title)) {
return null;
}
return $this->title;
}
}