1、新建模型 Route::get('member/index', 'MemberController@index'); namespace AppHttpControllers; use AppMember; class MemberController extends Controller { public function index() { return Member::getMember(); } } 新建一个模型文件appMember.php namespace App; use IlluminateDatabaseEloquentModel; class Member extends Model{ public static function getMember(){ return 'this is mebber model'; } }