Create gate.php

searching by id