csrf - Laravel csrf_token(); view vs. controller? -
this might seem silly question, of documentation shows csrf_token being echoed in view. there difference between doing vs. generating token in controller , passing token view?
is there difference between doing vs. generating token in controller , passing token view?
all doing creating step no reason. laravel handles token generation , session side of things.
the csrf_token automatically included if use form::open()
, dont need echo out yourself.
Comments
Post a Comment