title: Laravel 5.5 call Controller function from blade view with parameter
body: <p>I have a slider of products and i'm trying to find the lowest price of each product.</p>
  
  <p>So i'm trying, first of all, to successfully call a function from a Controller and pass the <code>id</code> of the product and also print it out.</p>
  
  <p><em>blade.php</em></p>
  
  <pre><code> &lt;span class="text-bold"&gt;
     @php
      use App\Http\Controllers\ServiceProvider;
      echo ServiceProvider::getLowestPrice($product_cat-&gt;id);
     @endphp
   &lt;/span&gt;
  </code></pre>
  
  <p><em>Route</em></p>
  
  <pre><code>Route::post('/getLowestPrice/{id}', 'ServiceProvider@getLowestPrice');
  </code></pre>
  
  <p><em>Controller</em></p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  
  class ServiceProvider extends Controller
  {
      public static function getLowestPrice($id) {
          return $id;
      }
  }
  </code></pre>
  
  <p>And I get an error</p>
  
  <pre><code>Parse error: syntax error, unexpected 'use' (T_USE) 
  </code></pre>
  
  <p>Any idea why <code>use</code> is not working here?</p>