i use web editor to upload imags ,so i want to disable csrf for imagesUpload
Asked
Active
Viewed 41 times
0
-
What's your route file ? – Mahfuzul Alam Oct 05 '16 at 04:06
-
`Route::group(['middlewareGroups' => ['web'],'namespace'=>'Admin'], function () { Route::get('cy','IndexController@index'); Route::get('theme','IndexController@theme'); Route::get('resume/index','ResumeController@index'); Route::resource('resume/add',"ResumeController@add"); Route::resource('resume',"ResumeController"); //articles Route::resource('articles',"ArticlesController"); Route::post('imagesUpload','ArticlesController@imagesUpload'); Route::resource('articleCategory',"ArticleCategoryController"); }); ` – yangyang Oct 06 '16 at 01:47
-
read this answer : http://stackoverflow.com/questions/31729415/disable-csrf-in-laravel-for-specific-route – Hiren Makwana Oct 06 '16 at 05:16
1 Answers
2
Comment out line 31 in the middlware kernal:
https://github.com/laravel/laravel/blob/master/app/Http/Kernel.php

jeremykenedy
- 4,150
- 1
- 17
- 25
-
i already comment out line 31 int the kernel.php.but the error still the same – yangyang Oct 06 '16 at 02:07