title: Laravel Query DB into Blade
body: <p>It's possible query DB into Blade?
  I send from routes to blade, all MyUsers and Booking.</p>
  
  <p>Into table booking I've the  column id_user,</p>
  
  <p>I've this code</p>
  
  <pre><code>    @foreach 
      {{$booking-&gt;id}}
  
  this down Foreach is not optimized - it's possible improve it?
  @foreach ($Myusers as $Myuser)
  @if ($myuser == $booking-&gt;id_user)
  $myuser-&gt;name 
  @endif
  @endforeach
  
  
      @endforeach
  </code></pre>
  
  <p>I've try with Blade::directive, but I can only send stirng value and not the php Value. i've this code</p>
  
  <pre><code>Blade::directive('DettagliUtente', function($expression) {
      print_r($expression); 
  but echo the string "$booking-&gt;id_user" but I want the value $booking-&gt;iduser
     $dettaglioutente=\App\Utenti::find($var)-&gt;first();
     return "&lt;?php echo '".$dettaglioutente-&gt;name."'; ?&gt;";
          });
  
  
  @DettagliUtente ($booking-&gt;id_user)
  </code></pre>
  
  <p>help me please</p>