为什么我的相关步骤都和老师的一样,调用Model时提示Class 'App\Http\Controllers\Member' not found
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Member extends Model{
public static function getMember(){
return 'member name is lily';
}
}
<?php
namespace App\Http\Controllers;
class MemberController extends Controller {
public function info($id)
{
//return view('member-info');
//return route('memberinfo');
//return view('member/info',[
//'name' => '糊涂虫',
//'sex' => 'man',
//'age' => '81'
//]);
return Member::getmemmber();
}
}