<?php
namespace AppHttpControllers;
use IlluminateSupportFacadesRequest;
class UploadController extends Controller
{
public function upload(Request $request)
{
if(Request::hasFile('file')){
echo 'Uploaded';
$file = Request::file('file');
$file->move('uploads', $file->getClientOriginalName());
echo '$file' . $file->getClientOriginalName() . '"/>';
}
}
}