Controller.php 537 B

12345678910111213141516171819
  1. <?php
  2. namespace App\Http\Controllers;
  3. use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
  4. use Illuminate\Foundation\Bus\DispatchesJobs;
  5. use Illuminate\Foundation\Validation\ValidatesRequests;
  6. use Illuminate\Routing\Controller as BaseController;
  7. use App\Common\Library\Easemob;
  8. class Controller extends BaseController
  9. {
  10. use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
  11. public function test(){
  12. $easemob = new Easemob();
  13. $rs = $easemob->push_text(1018,'标题','内容');
  14. dd($rs);
  15. }
  16. }