laravel - define post route without csrf token -


i want call functions android side.

now, want send post values android side.

how can disable csrf token functions ?

because without got error message .

like this:

route::post('mobile/android/getlastnews','newscontroller@getlastnews'); 

open app/http/middleware/verifycsrftoken.php , in protected $except = []; array add url want skipped csrf validation.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -