<?phpnamespaceModules\Translation\Http\Requests;useIlluminate\Foundation\Http\FormRequest;classImportTranslationsRequestextendsFormRequest{publicfunctionrules(){return['file'=>['required','extensions:csv'],];}publicfunctionauthorize(){returntrue;}publicfunctionmessages(){return['file.extensions'=>trans('translation::translations.csv only allowed'),];}}