@if (view()->exists('payment::' . $paymentMethod->name))
@endif
I came across this condition in a blade file and I can't figure out what the payment:: section means. Where would I look for the actual blade file in my folder structure?
CodePudding user response:
While creating the package you can also provide the blade views along with your package. In the package service provider under boot method you can call loadViewsFrom method.
So the package you are using must have registered under the payment namespace.
$this->loadViewsFrom(__DIR__.'/pathtoview', 'payment');
Here is some of the links to the package that provided views out of the box
- rap2hpoutre/laravel-log-viewer is registered under
laravel-log-viewernamespace - aschmelyun/larametrics is registered under
larametricsnamespace
