Update 'app/Http/Controllers/LocationController.php'

pull/8/head
alcapurrias 1 year ago
parent faef26e528
commit 971e744057

@ -45,12 +45,12 @@ class LocationController extends Controller
return back()->with('message', 'New Location Added. Take a break!'); return back()->with('message', 'New Location Added. Take a break!');
} else { } else {
return back()->withErrors([ return back()->withErrors([
'error' => 'Uh oh. There was an inssue', 'error' => 'Uh oh. There was an issue.',
]); ]);
} }
} else { } else {
return back()->withErrors([ return back()->withErrors([
'error' => 'All fields are required', 'error' => 'All fields are required.',
]); ]);
} }
} }
@ -65,7 +65,7 @@ class LocationController extends Controller
$duplicates = 0; $duplicates = 0;
$fresh = 0; $fresh = 0;
// ['url' => "rage.love"], // ['url' => "rage.love"],
//['url' => "indyapocalypse.social"], //['url' => "indiepocalypse.social"],
$unified = []; $unified = [];
//$denycount = array_map('str_getcsv', file($this->defed)); //$denycount = array_map('str_getcsv', file($this->defed));
@ -145,7 +145,7 @@ class LocationController extends Controller
'uuid' => Uuid::uuid4(), 'uuid' => Uuid::uuid4(),
'name' => $item['url'], 'name' => $item['url'],
'url' => $item['url'], 'url' => $item['url'],
'description' => ($item['comment'] != null) ? $item['comment'] : "no description", 'description' => ($item['comment'] != null) ? $item['comment'] : "No description provided.",
'active' => true, 'active' => true,
'rating' => $item['rating'], 'rating' => $item['rating'],
'added_by' => 1, 'added_by' => 1,

Loading…
Cancel
Save