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

[9.x] Clarify instance of billable user #7718

Merged
merged 3 commits into from
Feb 15, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update cashier-paddle.md
  • Loading branch information
driesvints authored Feb 15, 2022
commit fdb4fdf5f2892aa999b4e7c6bd6147c7453755a6
2 changes: 1 addition & 1 deletion cashier-paddle.md
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ To create a subscription, first retrieve an instance of your billable model, whi
use Illuminate\Http\Request;

Route::get('/user/subscribe', function (Request $request) {
$payLink = $user->newSubscription('default', $premium = 12345)
$payLink = $request->user()->newSubscription('default', $premium = 12345)
->returnTo(route('home'))
->create();

Expand Down