未定义类型Auth

namespace App\Http\Controllers; 

use Auth; 
use Illuminate\Http\Request;

class maincontroller extends Controller 
{ 
    public function home(Request $request)
    { 
        if(Auth::Attempt($request->only('email','password'))) { 
            return redirect('/'); 
        }
    }
}