LoginSignup
0
0

laravel selectフォーム validate

Posted at

laravel validate

$validatedData = $request->validate([
'data_name' => [ 'in:a_name,b_name']
]);

入力値はa_nameかb_nameしか認めない記述それ以外の悪意ある入力にerrorを吐く。
select フォームに使用する。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0