Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Trait 'Laravel\Cashier\Billable' not found #1

Closed
techguydev opened this issue Jun 5, 2020 · 7 comments
Closed

Error Trait 'Laravel\Cashier\Billable' not found #1

techguydev opened this issue Jun 5, 2020 · 7 comments

Comments

@techguydev
Copy link

  • Cashier Paddle Version: v.1.0.0-beta
  • Laravel Version: 7.13.0
  • PHP Version: 7.4
  • Database Driver & Version: Mysql

Description:

After following the steps in the docs I get this error:

Trait 'Laravel\Cashier\Billable' not found

Steps To Reproduce:

$user = App\User::find(1);
$payLink = $user->newSubscription('default', 'premium')
->returnTo(route('home'))
->create();

@techguydev
Copy link
Author

I have made this change to make it work:

use Laravel\Cashier\Billable;

for

use Laravel\Paddle\Billable;

in the App\User model and it works now, maybe a typo in the docs.

@akiyamaSM
Copy link

@lmatab Thats correct.

@driesvints
Copy link
Member

Hey thanks. I already updated the incorrect docs. Thanks for testing!

@saber13812002
Copy link

in my case installation didnt complete

my error is Memory limit

i can fix it by add memory_limit =-1 in php.ini
this solve my issue.

@driesvints
Copy link
Member

@saber13812002 seems to be a general Composer issue since a few weeks.

@enkota
Copy link

enkota commented Aug 6, 2020

@saber13812002 seems to be a general Composer issue since a few weeks.

Was getting a similar problem with another package running out of memory. Fixed it with the -1 memory limit config.

@nomanshaikh17
Copy link

I have made this change to make it work:

use Laravel\Cashier\Billable;

for

use Laravel\Paddle\Billable;

in the App\User model and it works now, maybe a typo in the docs.

thats very helpfull and solve my problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants