02-13-2022, 05:58 AM (This post was last modified: 02-13-2022, 06:07 AM by luckmoshy.)
(02-13-2022, 01:39 AM)kenjis Wrote: What do you mean by "posting methods not working" ?
What did you see?
I mean In C_I 4.1.8 I have allowed
Code:
csrf
but all posting methods do not work
I have done like this
PHP Code:
public $globals = [ 'before' => [ 'csrf',/*All post methods do not work */ // 'csrf',/*If I disable csrf work Why??? */ ], 'after' => [], ];
eg
PHP Code:
public function post(){/*from from action*/ return view('create');/*here does not post any thing but if I desable csrf I works fine*/ /*$routes->post('create', 'CreatePost::methodPost');;*/ }