Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

I guess you should convert your maxtime value from timestamp integer to date time.

Last updated 2 years ago.
0

I recommend using Carbon ( https://github.com/briannesbitt/Carbon ).

Also , why not add a auto inc and make it primary key. You can always query by the token. Add a unique index if you are 100% certain if the random hash is always going to be unique. Its possible that it would repeat.

Try to do a ConfirmToken::all() and iterate tough the result to check if writes have hit the database correctly.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

girtri girtri Joined 25 May 2014

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.

© 2024 Laravel.io - All rights reserved.