РИ
Size: a a a
РИ
З
РИ
DM
DM
З
#failedRules: []
#messages: null
#data: array:6 [▼
"_token" => "lep2xGkbx7PIjuDC00P1GspUzyQozVSreEq13reF"
"movie_id" => "1"
"people_id" => "1"
"person_name" => "Jack"
"occupation_id" => "1"
"position" => null
]
#initialRules: array:1 [▼
"people_id" => array:2 [▼
0 => "required"
1 => Illuminate\Validation\Rules\Unique {#281 ▶️}
]
]
#rules: array:1 [▼
"people_id" => array:2 [▼
0 => "required"
1 => Illuminate\Validation\Rules\Unique {#281 ▼
#ignore: null
#idColumn: "id"
#table: "movie_participates"
#column: "NULL"
#wheres: []
#using: array:1 [▼
0 => Closure($query) {#291 …4}
]
}
]
]
РИ
З
array:6 [▼
"_token" => "lep2xGkbx7PIjuDC00P1GspUzyQozVSreEq13reF"
"movie_id" => "1"
"people_id" => "1"
"person_name" => "Jack"
"occupation_id" => "1"
"position" => null
]
РИ
array:6 [▼
"_token" => "lep2xGkbx7PIjuDC00P1GspUzyQozVSreEq13reF"
"movie_id" => "1"
"people_id" => "1"
"person_name" => "Jack"
"occupation_id" => "1"
"position" => null
]
З
З
#failedRules: []
#messages: null
#data: array:6 [▼
"_token" => "lep2xGkbx7PIjuDC00P1GspUzyQozVSreEq13reF"
"movie_id" => "1"
"people_id" => "1"
"person_name" => "Jack"
"occupation_id" => "1"
"position" => null
]
#initialRules: array:1 [▼
"person_name" => array:2 [▼
0 => "required"
1 => Illuminate\Validation\Rules\Unique {#281 ▼
#ignore: null
#idColumn: "id"
#table: "movie_participates"
#column: "NULL"
#wheres: []
#using: array:1 [▼
0 => Closure($query) {#291 …4}
]
}
]
]
#rules: array:1 [▼
"person_name" => array:2 [▼
0 => "required"
1 => Illuminate\Validation\Rules\Unique {#281 ▶️}
]
]
DM
Validator::make($request->all(), [
'foo' => 'required'
], [
// ....
])->validate();
Validator::make($request->all(), [
'foo.*' => 'exists:tbl,id'
], [
// ....
])->validate();
РИ
DM
Validator::make($request->all(), [
'foo' => 'required',
'foo.*' => 'exists:tbl,id'
], [
// ....
])->validate();
З
РИ
РИ
РИ
Validator::make($request->all(), [
'foo' => 'required',
'foo.*' => 'exists:tbl,id'
], [
// ....
])->validate();
З
SQLSTATE[42703]: Undefined column: 7 ERROR: column "person_name" does not exist LINE 1: ...t(*) as aggregate from "movie_participates" where "person_na... ^ (SQL: select count(*) as aggregate from "movie_participates" where "person_name" = Jack and ("movie_id" = 1 and "occupation_id" = 1 and "people_id" = 1))
З