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

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

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