Hi, how we can use custom roles inside validator like this ``` 'email' => [ 'required', Rule::exists('staff')->where(function ($query) { $query->where('account_id', 1); }), ], ```
Hi,
how we can use custom roles inside validator like this