I guess you should convert your maxtime value from timestamp integer to date time.
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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community