Skip to content

Commit

Permalink
Adding latest updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tnylea committed Oct 19, 2024
1 parent 626dbe5 commit 88c2183
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions wave/src/Helpers/globals.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,6 @@

use Illuminate\Database\Eloquent\Relations\Relation;


if (!function_exists('profile_field')){

function profile_field($type, $key){

$value = auth()->user()->profile($key);
if($value){
return key_value($type, $key, $value);
} else {
return key_value($type, $key);
}

}

}

if(!function_exists('stringToColorCode')){

function stringToColorCode($str) {
$code = dechex(crc32($str));
$code = substr($code, 0, 6);
return $code;
}

}

if(!function_exists('tailwindPlanColor')){

function tailwindPlanColor($str) {
$code = dechex(crc32($str));
$code = substr($code, 0, 6);
return $code;
}

}

if (!function_exists('setting')) {
function setting($key, $default = null)
{
Expand Down

0 comments on commit 88c2183

Please sign in to comment.