Closed dlogvin closed 4 years ago
Heya. What view? Have you tried running a view:clear
? Have you tried this on a fresh app?
Hey! Yes, I tried view:clear
, but still nothing. It is my billing
view, where I included the widget.
This is the code block that seems to be causing the trouble:
@if(Auth::user()->subscribedToPlan($monthly = 123123, 'Pro'))
<div>
<a class="btn btn-outline-success">Current plan ✨ </a>
</div>
@else
<div>
<x-paddle-button :url="$payLink" class="px-8 py-4" data-theme="none" class="btn btn-primary">
Go premium! 🚀
</x-paddle-button>
</div>
@endif
What's the exact error you're getting?
[2020-08-16 11:42:00] production.ERROR: View [dashboard.settings.billing] not found. {"userId":1,"exception":"[object] (InvalidArgumentException(code: 0): View [dashboard.settings.billing] not found. at /home/forge/appname/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:137) [stacktrace]
That doesn't seems to have anything to do with Cashier Paddle. Your view simply doesn't exists on your production server.
You sure it doesn't?
root@App:/home/forge/appname/resources/views# cd dashboard/
root@App:/home/forge/appname/resources/views/dashboard# ls
Settings
dashboard.blade.php settings.blade.php
root@App:/home/forge/appname/resources/views/dashboard# cd Settings/
root@App:/home/forge/appname/resources/views/dashboard/Settings# ls
billing.blade.php subscriptionHistory.blade.php theme.blade.php
subscriptionHistory does load, theme does load too.
Yes
oof, it was a typo. My bad, my bad. it had to be "S", not "s". lol, so sorry to trouble you.
Description:
I know this shouldn't be used in production, still, I really have no other option than giving it a try. In my country, paddle seems to be the best and only solution.
Steps To Reproduce:
well, my view (blade, by the way) is indeed loaded in the localhost (homestead), but not in the production server.