You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在laravel中服务端调用出错提示:
Argument func must be callable.
`namespace App\Http\Controllers;
use Hprose\Http\Server;
use Illuminate\Http\Request;
class TestController extends Controller
{
public function index(){
$server = new Server();
$server->addFunction('hello',$this);
$server->start();
}
public function hello(){
return "Hello";
}
}`
The text was updated successfully, but these errors were encountered:
在laravel中服务端调用出错提示:
Argument func must be callable.
`namespace App\Http\Controllers;
use Hprose\Http\Server;
use Illuminate\Http\Request;
class TestController extends Controller
{
public function index(){
$server = new Server();
$server->addFunction('hello',$this);
$server->start();
}
public function hello(){
return "Hello";
}
}`
The text was updated successfully, but these errors were encountered: