嗨,我正在测试 lumen new laravel 微框架字,当我尝试从 Web 服务获取输入时,我收到了这个错误
Fatal error: Class 'App\Http\Controllers\Input' not found in C:\wamp\www\lumen\app\Http\Controllers\WsController.php
这是我的代码:
<?php namespace App\Http\Controllers;
class WsController extends Controller {
public function addUser()
{
$user = new Models\User;
$user->email = Input::get('email');;
$user->password = strtoupper(md5(Input::get('password')));
$user->first_name = Input::get('first_name');
$user->last_name = Input::get('last_name');
if($user->save()){
return Models\User::all();
}
}
}