b65a7b7a73
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.
29 lines
417 B
PHP
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;
|
|
}
|
|
}
|