title: Laravel 4 - Check if a database value is true
body: <p>Im running Laravel 4 for my app ... Im a newbie.</p>
  
  <p>I have created a small little application using the standard built in authentication and everything is working fine.</p>
  
  <p>I have the User.php model and the routes file taking care of all my requests.</p>
  
  <p>What i want to do, is add administrators, i have added a field in my users table which is named 'is_admin' .. its an integer of 1 or 0.</p>
  
  <p>What i want to be able to do is something like the following</p>
  
  <pre><code>if is_admin() {
      // Do stuff here if im an admin
  }
  </code></pre>
  
  <p>Can anyone help me out with how i can achieve that .. All i have at the moment is a database column.</p>
  
  <p>Cheers,</p>