API Extra Security Layer with Timestamp Protection using Laravel

const TIMESTAMP = 'X-Timestamp';
now()->diffInSeconds(Carbon::parse($timestamp)) < 30

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Hafiq Iqmal

Hafiq Iqmal

246 Followers

Tech Lead Back-End Developer | Software Engineer | Laravel Enthusiasts | CTF Newbie | Medium writer