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
Upload Controller Code: | |
public function postDownload(Request $request) | |
{ | |
$download = new Download(); | |
$download->name = $request->Input(['name']); | |
if($request->hasFile('display_image')) | |
{ | |
$file = Input::file('display_image'); |
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
<?php | |
use Illuminate\Support\Carbon; | |
use Illuminate\Support\Facades\Storage; | |
/** | |
* Format phone number to standard US | |
* | |
* @param string $data 9161234567 | |
* @return string (916) 123-4567 | |
*/ |