title: backpack laravel crud custom column
body: <p>I have a task - insert a custom column in one of our admin pages, where I can to call method from Model for each entry, generated by backpack CRUD generator.
  I have found in official documentations statement that looks like what I need here: </p>
  
  <p><a href="https://laravel-backpack.readme.io/v3.0/docs/crud-columns-types#section-roll-your-own" rel="nofollow noreferrer">https://laravel-backpack.readme.io/v3.0/docs/crud-columns-types#section-roll-your-own</a></p>
  
  <p>But there is nothing about how to implement this in the controller right way.
  So I have tried to do just like this</p>
  
  <p>Controller:</p>
  
  <pre><code>$status = [
          'label' =&gt; 'Status',
          'name'  =&gt; 'status',
          'type'  =&gt; 'text'
      ];
  $this-&gt;crud-&gt;addColumn($status);
  </code></pre>
  
  <p>and as mentinoned in documentation, I have create my own blade file in </p>
  
  <pre><code>resources\views\vendor\backpack\crud\columns
  </code></pre>
  
  <p>Here it is:</p>
  
  <pre><code>{{-- status --}}
  &lt;td&gt;{{ $entry-&gt;isBlocked }}&lt;/td&gt;
  </code></pre>
  
  <p>Where isBlocked is method in my Model. I have an error about database and nothing is working.
  Please say is it even possible to do what I wnat and if it is - please say how to do it right way both in view and controller</p>
  
  <p>Thankyou!</p>