Skip to content

Instantly share code, notes, and snippets.

@mitrallex
Created February 2, 2018 17:19
Show Gist options
  • Save mitrallex/d17e29f7a2e0ca3a70df8d3c9d91a7e6 to your computer and use it in GitHub Desktop.
Save mitrallex/d17e29f7a2e0ca3a70df8d3c9d91a7e6 to your computer and use it in GitHub Desktop.
larave-file-hosting
$this->validate($request, [
'name' => 'required|unique:files',
'file' => 'required|file|mimes:' . $all_ext . '|max:' . $max_size
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment