php - Changing laravel remember_token field to something else -


for project use auth login, works fine until try logout :

  auth::logout(); 

i use custom fieldname herrinertoken instead of default remember_token. in model/user.php edited function getremembertoken() to:

 public function getremembertokenname() {     return 'herrinertoken'; } 

when try logout message:

sqlstate[42s22]: column not found: 1054 unknown column 'remember_token' in 'field list' (sql: update gebruikers set herrinertoken = a3eyy1iibx1ffphpgmyntnlwke7a43vgqwpsu2b5b3efnhl0ayyf1vusgcbc, remember_token = a3eyy1iibx1ffphpgmyntnlwke7a43vgqwpsu2b5b3efnhl0ayyf1vusgcbc id = 6)

so looks tries tu update both remember_token , herrinertoken want update herinner_token field. need adjust update herrinertoken field , not remember_token field ?

add herrinertoken column instead of remember_token column users (or equivalent) database table.

you should use along following snippet:

public function getremembertoken() {     return $this->herrinertoken; }  public function setremembertoken($value) {     $this->herrinertoken = $value; }  public function getremembertokenname() {     return 'herrinertoken'; } 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -