What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-10-17 02:55:03
laravel logout all users
for database session I am updating all users remember tokens to blank and then flushing stored session by truncate the sessions table. DB::table('users')->update(array( 'remember_token' => '', 'logout_at' => Carbon::now()->toDateTi... Add solution -
-
PHP 2021-10-13 03:39:05
get current date laravel
use Carbon\Carbon; $date = Carbon::now(); Add solution -
PHP 2021-10-12 17:38:05
laravel seconds to hours minutes seconds
$value = '90060'; $dt = Carbon::now(); $days = $dt->diffInDays($dt->copy()->addSeconds($value)); $hours = $dt->diffInHours($dt->copy()->addSeconds($value)->subDays($days)); $minutes = $dt->diffInMinutes($dt->copy()->addSecond... Add solution
Best helpers
Ranking is empty