Skip to content

Instantly share code, notes, and snippets.

@danrovito
Created September 24, 2015 20:26
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 danrovito/e25410a2edb36672a837 to your computer and use it in GitHub Desktop.
Save danrovito/e25410a2edb36672a837 to your computer and use it in GitHub Desktop.
if($fileext == "css"){
Storage::disk('s3') -> getDriver() ->put($directoryname . "/" . $filename, $contents, [
'ContentType' => 'text/css'
]);
} else if($fileext == "js"){
Storage::disk('s3') -> getDriver() ->put($directoryname . "/" . $filename, $contents, [
'ContentType' => 'application/javascript'
]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment