laravel / cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.
https://laravel.com/docs/cashier-paddle
MIT License
245 stars 57 forks source link

View is not found in production (I know, this should not be used in production). #57

Closed dlogvin closed 4 years ago

dlogvin commented 4 years ago

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.

driesvints commented 4 years ago

Heya. What view? Have you tried running a view:clear? Have you tried this on a fresh app?

dlogvin commented 4 years ago

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
driesvints commented 4 years ago

What's the exact error you're getting?

dlogvin commented 4 years ago

[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]

driesvints commented 4 years ago

That doesn't seems to have anything to do with Cashier Paddle. Your view simply doesn't exists on your production server.

dlogvin commented 4 years ago

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.

driesvints commented 4 years ago

Yes

dlogvin commented 4 years ago

oof, it was a typo. My bad, my bad. it had to be "S", not "s". lol, so sorry to trouble you.