Support the ongoing development of Laravel.io →

Dean

Joined 4 Mar 2017

Statistics

Threads 1
Replies 2
Solutions 1
Articles 0

Getting pivot id after attach()?

I am fairly new to laravel and I'm trying to build an 'add to basket' script. It consists of 3 table...

0 Likes
0 Replies
replied 7 years ago

Cashier BadMethodCallException Method newSubscription() does not exist, why?

Sorry... I should have said use first() instead of get() rather than just removing it.

0 Likes
Solved
replied 7 years ago

Cashier BadMethodCallException Method newSubscription() does not exist, why?

have you tried (remove get())?: $subscribeUser = User::where('email', $data['email']);

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.