DEV Community

Discussion on: Get Last Login Info of user in laravel

Collapse
 
dougblackjr profile image
Doug Black

Couple things on this:

I think $table->timestamp('last_login_at') should be $table->dateTime('last_login_at') to work with the now() function.

$table->timestamp('last_login_ip_address') should be $table->string('last_login_ip_address')

Definitely points in the right direction though.

Collapse
 
snehalkadwe profile image
Snehal Rajeev Moon

Thank you for your thoughts, I appreciate you suggestion.