Fixed compact() errors

This commit is contained in:
snipe
2020-04-07 17:26:56 -07:00
parent b7d9790acb
commit 0b3f511534
10 changed files with 24 additions and 38 deletions
@@ -259,11 +259,8 @@ class AssetModelsController extends Controller
if (isset($model->id)) {
return view('models/view', compact('model'));
}
// Prepare the error message
$error = trans('admin/models/message.does_not_exist', compact('id'));
// Redirect to the user management page
return redirect()->route('models.index')->with('error', $error);
return redirect()->route('models.index')->with('error', trans('admin/models/message.does_not_exist'));
}
/**