use Carbon\Carbon;
$tarikh='2021-04-02 20:30:26';
$tt = Carbon::parse($tarikh);
$from = $tt->format('Y-m-d h:mm:ss');