Skip to content

Instantly share code, notes, and snippets.

View EddyF's full-sized avatar

Eddy Ferreira EddyF

View GitHub Profile
<?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Routing\Router;
class RouteServiceProvider extends ServiceProvider
{

#FOR MULTIPLE REDIS INSTANCE INSTALLATION ON RHEL7+ USE THE FOLLOWING PATHS AND SETUP PROCESS:

  • create a new redis .conf file
$ cp /etc/redis.conf /etc/redis-xxx.conf
  • edit /etc/redis-xxx.conf, illustrated as below
  • create a new redis .conf file
$ cp /etc/redis.conf /etc/redis-xxx.conf
  • edit /etc/redis-xxx.conf, illustrated as below
...
//find stuff
find . -exec grep -H -n 'No active calls' {} \;
foreach($data['data'] as $key => $data)
{
if(isset($data))
{
$var[$key] = array(
'balance' => $data->balance,
'date' => date('d/m', strtotime($data->date))
);
}
}