Skip to content

Instantly share code, notes, and snippets.

@rob1121
Created August 8, 2016 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rob1121/ff502b91c2796bd51b60b9aba76c6ea8 to your computer and use it in GitHub Desktop.
Save rob1121/ff502b91c2796bd51b60b9aba76c6ea8 to your computer and use it in GitHub Desktop.
testing file upload
private function file()
{
return new Illuminate\Http\UploadedFile(
base_path('/tests/pdf/test.pdf'),
'test.pdf',
'application/pdf',
filesize(base_path('/tests/pdf/test.pdf')),
null,
true
);
}
//ofcourse we should place a dummy file, for this instance i placed test.pdf in /tests/pdf/ directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment