We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5967340 commit 51967faCopy full SHA for 51967fa
src/Entries/EntryModel.php
@@ -3,6 +3,7 @@
3
namespace Statamic\Eloquent\Entries;
4
5
use Illuminate\Database\Eloquent\Model as Eloquent;
6
+use Illuminate\Support\Arr;
7
8
class EntryModel extends Eloquent
9
{
@@ -21,6 +22,11 @@ public function origin()
21
22
return $this->belongsTo(self::class);
23
}
24
25
+ public function getAttribute($key)
26
+ {
27
+ return Arr::get($this->getAttributeValue('data'), $key, parent::getAttribute($key));
28
+ }
29
+
30
public static function generateId()
31
32
return null;
0 commit comments