Created
November 17, 2017 02:12
-
-
Save codeInBit/0fb2a7235352bbc0cdad5f0f3f876942 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function upload(UploadedFile $file) | |
{ | |
$fileMedia = new static; | |
$file->name = time().'_'. strtolower( $file->getClientOriginalName() ); | |
Image::make($file)->resize(1360, 760)->save(config('admin.fileUploadDirectory') . $file->name); | |
// $file->move(config('admin.fileUploadDirectory'), $file->name); | |
return $file; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment