chrisgrim
1 month ago
79
12
Laravel

Is the update->request(all) with token a recent thing?

Posted 1 month ago by chrisgrim

I recently have had to change my update request alls to exclude the token like this.

update($request->except(['_token']));

however when I look back at older projects I can see that I was able to do this

update($request->all());

Is this a recent change with the latest version of Laravel? Is there a way to always ignore the _token? I like trying to make my code look as clean as possible.

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