Browse Source

Remove url validation

hometags
KodeStar 6 years ago
committed by GitHub
parent
commit
aa05c947a9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/Http/Controllers/ItemController.php

4
app/Http/Controllers/ItemController.php

@ -141,7 +141,7 @@ class ItemController extends Controller
// //
$validatedData = $request->validate([ $validatedData = $request->validate([
'title' => 'required|max:255', 'title' => 'required|max:255',
'url' => 'required|url', 'url' => 'required',
]); ]);
if($request->hasFile('file')) { if($request->hasFile('file')) {
@ -217,7 +217,7 @@ class ItemController extends Controller
{ {
$validatedData = $request->validate([ $validatedData = $request->validate([
'title' => 'required|max:255', 'title' => 'required|max:255',
'url' => 'required|url', 'url' => 'required',
]); ]);
//die(print_r($request->all())); //die(print_r($request->all()));
if($request->hasFile('file')) { if($request->hasFile('file')) {

Loading…
Cancel
Save