CodePudding user response:
use following code :
return \response($data, $statusCode);
for example :
return \response(['name'=>'Amin'], 200);
CodePudding user response:
use following code :
return \response($data, $statusCode);
for example :
return \response(['name'=>'Amin'], 200);