v0.10.0a - Added last support for NameCheck
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user