down vote i am getting the same error but this is my approah $rval = '4q34ipuipfpaidapdfadup'//a random number...
$details = Company::with('User')->where('email', Input::get('qpass'))->first();
$u = $details['user'];
$u->reset_pass = $rval; //then save to the database...
$u->save();
i get an error saying " creating default object from empty value ", at this line $u->reset_pass = $rval; and when i broke the model down into seperate entities i still got the same error at that same line... i need assistance.. thanks.
$rval = '4q34ipuipfpaidapdfadup'//a random number...
$details = Company::where('email', Input::get('qpass'))->first();
$u = User::find($details->user_id)->get();
$u->reset_pass = $rval; //then save to the database...
$u->save();
and i still get that error at this point ($u->reset_pass = $rval;