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
@@ -131,4 +131,12 @@ class LocationController extends Controller
{
}
public function nameCheck(Request $request){
$locations = Location::query()->where('name', 'LIKE',$request->nameCheck)->get();
if(count($locations) > 0 && $request->nameCheck !== NULL){
return 1;
}
}
}