Php auth::TRUMENT laravel 4.2中的检查表

Php auth::TRUMENT laravel 4.2中的检查表,php,laravel,Php,Laravel,我想重定向到auth::trunt为true的不同页面。我有桌子 unique(id, password, id_book) book(id_book, name, author,...) unnnique.id_book = book.id_book 登录的id和密码,如果auth::trunt为true,则重定向到“输入”表单页 对于在$book->save时注册book,unique.id\u book将使用book.id更新,并且在注册图书时,如果再次使用相同的用户名和密码登录,将重定

我想重定向到auth::trunt为true的不同页面。我有桌子

unique(id, password, id_book)
book(id_book, name, author,...)
unnnique.id_book = book.id_book
登录的id和密码,如果auth::trunt为true,则重定向到“输入”表单页 对于在$book->save时注册book,unique.id\u book将使用book.id更新,并且在注册图书时,如果再次使用相同的用户名和密码登录,将重定向到“detail”“细节”是从书中插入到表格注册中的细节,如姓名、作者等

if(Auth::attempt($userdata)){
if(...){
return Redirect::to('detail');
}
else{
return Redirect::to('input');
}}
else{
return Redirect::to('/')->with('msg', 'Login failed, username or password worng');
}
models/unique.php

class Unique extends Eloquent implements UserInterface, RemindableInterface{
//table name
protected $table = 'unique';
public function getAuthIdentifier()
{
    return $this->getKey();
}
public function getAuthPassword()
{
    return $this->password;
}
public function getReminderEmail()
{
    return $this->email;
}
public function getRememberToken()
{
    return $this->remember_token;
}
public function setRememberToken($value)
{
    $this->remember_token = $value;
}

public function getRememberTokenName()
{
    return 'remember_token';
}

}

如何检查这个?我使用laravel 4.2,我很难理解重定向到
细节的条件是什么。你能解释清楚一点吗?@lukasgeiter'detail'是书中的详细页面,是谁登录并注册的,比如名字、作者……好吧,现在我明白了。。。你使用有说服力的模型吗?如果是,请发布您的用户模型(
unique
)?