title: How to call a controller from view in laravel 5
body: <p>I am using Laravel 5 in which i have to call a controller from view blade. But it showing me parse error. Please find my code.</p>
  
  <p><strong>Controller name:ReportController(path=app/Http/Controllers/Admin/ReportController)</strong></p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers\Admin;
  use App\Http\Controllers\Controller;
  use Illuminate\Http\Request;
  use DB;
  //send email use helper
  use App\Helpers\MyHelperFunction;
  
   public static function my($args){
          // do your stuff or return something.
          echo $args."I am called on view.";
      }
  ?&gt;
  </code></pre>
  
  <p><strong>View:customerorders.blade.php</strong></p>
  
  <pre><code>&lt;?php 
  use App\Http\Controllers\Admin\ReportController;
       echo ReportController::my('hello'); 
  ?&gt;
  </code></pre>
  
  <p>I facing this error:</p>
  
  <blockquote>
    <p>Method Illuminate\View\View::__toString() must not throw an exception,
    caught ErrorException: Parse error: syntax error, unexpected 'use'
    (T_USE)
    (View:/opt/lampp/htdocs/buddyiq_dev/resources/views/Admin/reports/customerorders.blade.php)</p>
  </blockquote>
  
  <p>I refer above code from below stack url.</p>
  
  <p><a href="https://stackoverflow.com/questions/35332784/how-to-call-a-controller-function-inside-a-view-in-laravel-5">How to call a controller function inside a view in laravel 5</a></p>
  
  <p>Please help me to resolve this issue.</p>