laravel/framework — pull request #541 by Anahkiasen (2013-03-10 22:32:37+00:00)
Title: [Proposal] Add File::sanitize to sanitize filenames

While `Str::slug` is great, it fails to be used as a way to sanitize user uploaded files's names as it strips the dot from the extension. This is a little helper to allow easy sanitation of file names.