Example #1
0
File: Output.php Project: emayk/ics
 public function toPusher(array $data, $ch = 'my_app', $event = 'my_event')
 {
     return \Icsmessage::send($data, $ch, $event);
 }
Example #2
0
File: test.php Project: emayk/ics
     //->info($obj);
     Icslogchrome::log($obj, 'table');
     //->info($obj);
     // $obj = serialize($obj);
     // Icslogchrome::log()->info($obj);
     // ChromePhp::log('Hello console!'.time());
     // return Icslogchrome::info('hi....');
     return time();
     $arr = array('mantap');
     s(Icsmessage::getConfig());
     $channel = Icsmessage::getConfig()['channel'];
     s($channel);
     s(Icsoutput::json(array('mantap')));
     $json = Icsoutput::json($arr);
     if (is_array($json)) {
         Icsmessage::send($json);
     } else {
         s('tidak kirim karena bukan array');
     }
     // s(Icsmessage::about());
     return Icsview::make('test');
 });
 Route::get('config', function () {
     // return View::make('ics::home.index');
 });
 Route::get('excel', function () {
     // return View::make('ics::home.index');
     // IcsExcel::load();
     $obj = new StdClass();
     $obj->id = time();
     $obj->name = 'Name ' . time();