title: Laravel Blade view calling static property and namespace
body: <p>I have been working in Facebook Ad SDK which works well in the controller because it has full PHP syntax support. </p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  
  use FacebookAds\Object\AdAccount;
  use FacebookAds\Api;
  use FacebookAds\Logger\CurlLogger;
  use FacebookAds\Object\Campaign;
  use FacebookAds\Object\Fields\CampaignFields;
  
  class AdController extends Controller
  { 
      private $access_token = '';
      private $account_id = '';
      private $app_secret = '';
      private $app_id = '';
  
      public function __construct(){
          Api::init($this-&gt;app_id, $this-&gt;app_secret, $this-&gt;access_token);
       }
  
  
      public  function index()
      {
  
          $account = new AdAccount($this-&gt;account_id);
  
          $params = array(
              'time_interval' =&gt; array(
                  'day_start' =&gt; array('year' =&gt;'2013', 'month'=&gt; '5', 'day'=&gt;'1'),
                  'day_stop' =&gt; array( 'year'=&gt;'2017', 'month'=&gt;'12', 'day'=&gt;'31')
              ),
              'limit' =&gt; 500,
          );
          $fields = array(
              CampaignFields::NAME,
              CampaignFields::OBJECTIVE,
              CampaignFields::STATUS,
          );
  
          $campaigns = $account-&gt;getCampaigns($fields,$params);
  /*
          return view('admin.campaigns.index', [
              'campaigns' =&gt; $campaigns
          ]);
  
  */
  
  
  
  
          foreach ($campaigns as $campaign) {
              //echo "campaign ID". . "&lt;br/&gt;";
              echo "&lt;a href='ad_detail.php?id=".$campaign-&gt;{CampaignFields::ID}."'&gt;".$campaign-&gt;{CampaignFields::NAME}."&lt;/a&gt;&lt;br/&gt;";
  
  
  
          }
      }
  }
  </code></pre>
  
  <p>I was trying to pass the $campaigns in the view like this way, though I knew it would not work because of the absence of namespaces and conflict between blade {{ }} and $campaign->{CampaignFields::NAME}/$campaign->{CampaignFields::ID}.</p>
  
  <pre><code>@foreach ($campaigns as $campaign) {
  
              &lt;a href='ad_detail.php?id="{{$campaign-&gt;{CampaignFields::ID}}}"'&gt;" {{$campaign-&gt;{CampaignFields::NAME}}}"&lt;/a&gt;
  
  @endforeach
  </code></pre>
  
  <p>My question is how to pass the $campaigns array in the view with proper blade syntax.</p>