user()->checkPermission("auth.role:read"); } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'limit' => 'nullable', 'offset' => 'nullable', 'search' => 'nullable', 'filter' => 'nullable|array', 'filter.*.column' => 'required|in:name,email', 'filter.*.operator' => 'nullable|in:eq,in', 'filter.*.query' => 'required', 'sort' => 'nullable|array', 'sort.column' => 'nullable|in:name,email', 'sort.dir' => 'nullable', ]; } }