Answers for "time ago laravel in model"

PHP
4

date time laravel

'phone' => 'required|regex:/(01)[0-9]{9}/'
Posted by: Guest on October-24-2021
0

how check the time of operation in laravel

$timeStart = microtime(true);

App::finish(function() use ($timeStart) {
    $diff = microtime(true) - $timeStart;
    $sec = intval($diff);
    $micro = $diff - $sec;
    Log::debug(Request::getMethod() . "[" . Request::url() . "] Time: " . round($micro * 1000, 4) . " ms");
});
Posted by: Guest on August-02-2021

Browse Popular Code Answers by Language