app/controllers/UploadController.php
Method postUpload
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function postUpload() {
$user = User::find(Cookie::get('user_id'));
$file = Input::file('file');
if($file) {
$destinationPath = public_path() . '/uploads/' . $user->id . '/';