<?php
namespace Thirty\controllers; use Thirty\services\Notifications; class DevController{ public static function test_notify(){ require_auth(); global $DB; $uid=user()['id']; if(env('APP_ENV','local')!=='local'){ http_response_code(403); echo 'Only in APP_ENV=local'; return; } \Thirty\services\Notifications::create($DB,$uid,'test',['msg'=>'hola','time'=>time()]); echo 'ok'; }}
