未定义的属性:Laravel 5.1中的stdClass :: error

I got an error when i trying to print a value of an array in my Laravel Application.Please take a look.

My Controller:

public function index()
{
    //
    $data = new Userflow();
    $result = $data->gobalsCount();
    $res = $data->yrLogins;
    $res1 = $data->mnLogins;
    $res2 = $data->dayLogins;
    $res3 = $data->hrLogins;
    $res4 = $data->minLogins;
    $res5 = $data->secLogins;
    $object = [$res,$res1,$res2,$res3,$res4,$res5];

   //dd($object);
    return view('userflow',compact('object'));
}

My Model:

public $yrLogins = "";
public function gobalsCount(){
    $this->yrLogins = DB::SELECT("SELECT count(*)/(TIMESTAMPDIFF(YEAR,'2016-01-01 00:00:00',now())+1) as avg from authtracker  where created_at >= '2016-01-01 00:00:00'");
................

My blade template:

  @foreach($object as $value)
  <td>{{ $value['0']->avg }}</td>                 
  @endforeach

In this way i got this type of error.If i var_dump($object) then it returns:

array:6 [▼
  0 => array:1 [▼
    0 => {#1396 ▼
      +"avg": "2.0000"
    }
  ]
  1 => array:1 [▶]
  2 => array:1 [▶]
  3 => array:1 [▶]
  4 => array:1 [▶]
  5 => array:1 [▶]
]

How can i print this array value ex: 2.0000. Any help will be appreciated.Thanks in advance.

May be try this way,

@foreach($object as $value)
  <td>{{$value[0][0]->avg}}</td>                 
@endforeach

Haven't tried, but should work.