jeudi 19 avril 2018

Laravel call controller method from other controller

I have a post model, a user model, and a point model.

Whenever a user posts a new post, they get a point added (new row in points table).

I have controllers setup for each of those models.

Should/how can I call the PointsController@store from the PostsController@store after adding the post?

Or is this the wrong way to go about it?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2qLdpiT
via IFTTT

Aucun commentaire:

Enregistrer un commentaire