update 1.0.8.0

Commits for version update
This commit is contained in:
Manish Verma
2016-10-17 12:02:27 +05:30
parent dec927987b
commit 76e85db070
9674 changed files with 495757 additions and 58922 deletions

44
app/Http/helpers.php Normal file
View File

@@ -0,0 +1,44 @@
<?php
function loging($context, $message, $level = 'error', $array = [])
{
\Log::$level($message.':-:-:-'.$context, $array);
}
function checkArray($key, $array)
{
$value = '';
if (array_key_exists($key, $array)) {
$value = $array[$key];
}
return $value;
}
function mime($type)
{
if ($type == 'jpg' ||
$type == 'png' ||
$type == 'PNG' ||
$type == 'JPG' ||
$type == 'jpeg' ||
$type == 'JPEG' ||
$type == 'gif' ||
$type == 'GIF' ||
$type == 'image/jpeg' ||
$type == 'image/jpg' ||
$type == 'image/gif' ||
$type == 'application/octet-stream' ||
$type == 'image/png' ||
starts_with($type, 'image')) {
return 'image';
}
}
function removeUnderscore($string)
{
if (str_contains($string, '_') === true) {
$string = str_replace('_', ' ', $string);
}
return ucfirst($string);
}