Issue
@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?
Solution
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-viewer
namespace - aschmelyun/larametrics is registered under
larametrics
namespace
Answered By - ManojKiran Appathurai
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.