We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 280e778 + a866d6b commit e2c3386Copy full SHA for e2c3386
app/Http/Controllers/LocationsController.php
@@ -168,7 +168,7 @@ public function destroy($locationId)
168
{
169
$this->authorize('delete', Location::class);
170
if (is_null($location = Location::find($locationId))) {
171
- return redirect()->to(route('locations.index'))->with('error', trans('admin/locations/message.not_found'));
+ return redirect()->to(route('locations.index'))->with('error', trans('admin/locations/message.does_not_exist'));
172
}
173
174
if ($location->users()->count() > 0) {
0 commit comments