<NME> PresentableTrait.php
<BEF> <?php

namespace Prettus\Repository\Traits;
use Prettus\Repository\Contracts\PresenterInterface;

/**
 * Class PresentableTrait
 * @package Prettus\Repository\Traits
 * @author Anderson Andrade <contato@andersonandra.de>
 */
trait PresentableTrait
{

    /**
     * @var PresenterInterface
     */
    protected $presenter = null;

    /**
     * @param \Prettus\Repository\Contracts\PresenterInterface $presenter
     *
     * @return $this
     */
    public function setPresenter(PresenterInterface $presenter)
    {
        $this->presenter = $presenter;

     */
    public function presenter()
    {
        if( isset($this->presenter) && $this->presenter instanceof PresenterInterface )
        {
            return $this->presenter->present($this);
        }
     * @return mixed|null
        return $this;
    }

}
        }

        return $this;
    }
}

<MSG> Merge pull request #94 from uyab/feature-presenter-helper

Feature presenter helper
<DFF> @@ -1,6 +1,8 @@
 <?php
 
 namespace Prettus\Repository\Traits;
+
+use Illuminate\Support\Arr;
 use Prettus\Repository\Contracts\PresenterInterface;
 
 /**
@@ -28,7 +30,7 @@ trait PresentableTrait {
      */
     public function presenter()
     {
-        if( isset($this->presenter) && $this->presenter instanceof PresenterInterface )
+        if( $this->hasPresenter() )
         {
             return $this->presenter->present($this);
         }
@@ -36,4 +38,27 @@ trait PresentableTrait {
         return $this;
     }
 
-}
\ No newline at end of file
+    /**
+     * @param $key
+     * @param null $default
+     * @return mixed|null
+     */
+    public function present($key, $default = null)
+    {
+        if ( $this->hasPresenter() )
+        {
+            $data = $this->presenter()['data'];
+            return Arr::get($data, $key, $default);
+        }
+
+        return $default;
+    }
+
+    /**
+     * @return bool
+     */
+    protected function hasPresenter()
+    {
+        return isset($this->presenter) && $this->presenter instanceof PresenterInterface;
+    }
+}

Merge pull request #94 from uyab/feature-presenter-helper