Variable type error: error of array occurs when TP5 controller receives the array of post

Error code:

$data=\request()->post('data');

Correct practice: the data in post.data is customized in post:

$data=input('post.data/a');

Read More: