v0.10.0a - Added last support for NameCheck

This commit is contained in:
2020-08-17 10:31:33 +02:00
parent 5f516992d7
commit fe9eb4fd4d
5 changed files with 139 additions and 4 deletions
@@ -153,4 +153,15 @@ class WashingMachineController extends Controller
return redirect()->route("washing-machines.index");
}
public function nameCheck(Request $request){
$washing = WashingMachine::query()->where('name', 'LIKE',$request->nameCheck)->get();
if(count($washing) > 0 && $request->nameCheck !== NULL){
return 1;
}
}
}