check(); } /** * @return array */ public function rules() { $types = array_keys(config('firefly.import_formats')); return [ 'import_file' => 'required|file', 'import_file_type' => 'required|in:' . join(',', $types), ]; } }