Upload function for laravel 4