Singularize model names.
This commit is contained in:
parent
7c916ad38f
commit
8ba479e51f
25 changed files with 73 additions and 73 deletions
|
@ -124,7 +124,7 @@ class ServiceController extends Controller
|
|||
|
||||
public function getOption(Request $request, $service, $option)
|
||||
{
|
||||
$option = Models\ServiceOptions::with('service', 'variables')->findOrFail($option);
|
||||
$option = Models\ServiceOption::with('service', 'variables')->findOrFail($option);
|
||||
$option->setRelation('servers', $option->servers()->with('user')->paginate(25));
|
||||
|
||||
return view('admin.services.options.view', ['option' => $option]);
|
||||
|
@ -205,7 +205,7 @@ class ServiceController extends Controller
|
|||
public function getNewVariable(Request $request, $service, $option)
|
||||
{
|
||||
return view('admin.services.options.variable', [
|
||||
'option' => Models\ServiceOptions::with('service')->findOrFail($option),
|
||||
'option' => Models\ServiceOption::with('service')->findOrFail($option),
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue