我在自己的接口 里面 引入 use Illuminate\Http\Request;
提示 : FatalErrorException in Resign.php line 10:
Declaration of App\Http\services\register\Resign::logic(Illuminate\Http\Request $request) must be compatible with App\Http\services\common\Inter::logic()
代码:
//控制器调用接口。
use App\Http\services\register\Resign;
$reg =new Resign();
$reg->logic();
//接口。
<?php
namespace App\Http\services\register;
use App\Http\model\register\sign;
use App\Http\services\common\Inter;
use App\Http\services\common\Demo;
use Illuminate\Http\Request;
class Resign extends Demo implements Inter{
public function logic(Request $request){
dd($request->all());
}
}
?>
请问 怎么解决。谢谢!