📜  laravel 请求除多个 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:50.177000             🧑  作者: Mango

代码示例1
$input = $request->only(['username', 'password']);

$input = $request->only('username', 'password');

$input = $request->except(['credit_card']);

$input = $request->except('credit_card');