Corrección tag_number nullable en TagsController
This commit is contained in:
parent
3e48f8d6db
commit
3079826f0f
@ -62,8 +62,7 @@ public function store(Request $request)
|
|||||||
$validated = $request->validate([
|
$validated = $request->validate([
|
||||||
'folio' => 'required|string|max:255',
|
'folio' => 'required|string|max:255',
|
||||||
'box_id' => 'required|integer|exists:boxes,id',
|
'box_id' => 'required|integer|exists:boxes,id',
|
||||||
'tag_number' => 'required|string|max:255',
|
'tag_number' => 'nullable|string|max:255',
|
||||||
'module_id' => 'nullable|integer|exists:modules,id',
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$tag = Tag::create($validated);
|
$tag = Tag::create($validated);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user