13. Lấy một phần dữ liệu input (Retrieving a portion of input data)
https://viblo.asia/p/tap-16-request-laravel-aWj534Y8K6m
// Chỉ lấy input có name là "username" và "password"
$request->only(['username', 'password']);
$request->only('username', 'password');
// Lấy tất cả input ngoại trừ input có name là "credit_card"
$request->except(['credit_card']);
$request->except('credit_card');Previous12. Lấy giá trị JSON input (Retrieving JSON input value) (ok)Next14. Kiểm tra nếu có giá trị input (Checking if has input value)
Last updated