示例#1
0
文件: Output.php 项目: emayk/ics
 public function toPusher(array $data, $ch = 'my_app', $event = 'my_event')
 {
     return \Icsmessage::send($data, $ch, $event);
 }
示例#2
0
文件: test.php 项目: 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();