我的路线:
Route::get('register/verify/{activation_code}', 'Auth\AuthController@confirm');
在Authcontroller.php中
class AuthController extends Controller
{
public function create(array $data)
{
//do something
}
public function __construct()
{
$this->middleware('guest', ['except' => 'getLogout']);
}
public function confirm($activation_code)
{
//do something
}
public function approval($id)
{
//do something
}
}
但这条路线有效:
Route::post('auth/register', 'Auth\AuthController@postRegister');
它可以通过Illuminate \ Foundation \ Auth \ RegistersUsers.php
达到创建功能