Support the ongoing development of Laravel.io →
Authentication Eloquent

Hi there,

it seems that my Laravel Setup (4.2.16) tries to fill a remember_token column on creation of every model, even on not-User ones - which does not make any sense at all.

When I try to create a new State for example (just some random non-User Model here):

Route::get('test', function(){

	$state = Acme\State\State::create([
		'name' => 'foo'
	]);

	dd($state);
});

it fails with

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'remember_token' in 'field list' (SQL: insert into `states` (`remember_token`, `name`, `updated_at`, `created_at`) values (, foo, 2015-01-08 13:36:41, 2015-01-08 13:36:41))

Of course there's no remember_token available, since this is not a user, and of course a remember_token is certainly not part of the State migration.

Can you point me to a direction where I have possibly caused this?

Thanks in advance!

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.