in laravel route i want to use many action in before
for example :
Route::resource ('admin/contents', 'ContentManagmentController' , array('as'=>'contents'));
i want to have :
'before'=>'csrf'
'before'=>'checkAjax'
how to fix this route:is this correct?
Route::resource ('admin/contents', 'ContentManagmentController' , array('as'=>'contents', 'before'=>'csrf','checkAjax'));