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

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -