Laravel 5.5 call Controller function from blade view with parameter
@Ali is obviously correct, and I suggest you accept his answer.
I'd like to add, though, that there's a service injection directive as well which was built for this exact purpose, and which is a little cleaner to use.
@inject('provider', 'App\Http\Controllers\ServiceProvider')
<span class="text-bold">
{{ $provider::getLowestPrice($product_cat->id) }}
</span>
Docs: https://laravel.com/docs/5.5/blade#service-injection
you can't use use
keyword inside method
you can write the full class path , like this
<span class="text-bold">
@php
echo App\Http\Controllers\ServiceProvider::getLowestPrice($product_cat->id);
@endphp
</span>