The CSRF token has always been included in the request.
However, you shouldn't need to explicitly exclude the token in your update call. Unless there is a mass assignable column named _token in your model, the token is simply ignored.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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.
@chrisgrim docs https://laravel.com/docs/5.8/eloquent-relationships
The difference is that calling your relationship as a method like: expectation gives you the Model or in the case you defined a hasMany() relationship a collection of Models.
When you call it as an attribute like: expectation() it gives you a query builder which you can use to do some extra filtering, sorting, and than call ->get() (and you can do even more with it like adding new relationships, syncing Id's, for hasManyToMany, etc.)
I can explain it in detail here here but I see someone already did it on SO for you: https://stackoverflow.com/questions/28223289/difference-between-method-calls-model-relation-and-model-relation
Please or to participate in this conversation.