function not defined

Posted 1 year ago by RadoszSzymon

I have problem: I build first app and I have 2 tables in my db: habits and users. The User has a field called points and after click a button 'Add point' I want to increment that value. I added a method in HabitsController called addPoints and button in a view, but I get an error message: Action App\Http\Controllers\[email protected] not defined. (View: C:\xampp\htdocs\happ\resources\views\habits\show.blade.php). There is my code.


Please sign in or create an account to participate in this conversation.