> For the complete documentation index, see [llms.txt](https://docs.tomatophp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tomatophp.com/plugins/tomato-roles/developer-gate.md).

# Developer Gate

we have a developer gate to ensure that only trusted developers can access the feature, it can be used to make some features only for the developer.

## How to use

we added some helpers to make it easy, so in your controller method you can use this helper to check if the user is a developer or not

```php
public function index(Request $request)
{
   if(is_developer()){
    //Do THIS
   }
   
   return developer_redirect();
}
```

and it will redirect it to enter the password of the developer and you change this password just from the config file.
