Skip to content

Instantly share code, notes, and snippets.

View chaairsoft's full-sized avatar

ChaairSoft chaairsoft

View GitHub Profile
@nowendwell
nowendwell / Helpers.php
Last active July 25, 2023 15:23
Laravel Helpers
<?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
*/
@javedLive
javedLive / Laravel : How to upload image or file on storage Folder
Last active January 25, 2021 17:16
Image Upload Laravel On Storage folder
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');