eminuckan

ErrorException: A non well formed numeric value encountered

laravel Icon

ErrorException

A non well formed numeric value encountered

An unhandled exception occurred on line 22
19
        return $columnChartModel =
20
            (new ColumnChartModel())
21
                ->setTitle('Aylık İşlemler (₺ cinsinden)')
22
                ->addColumn('Ocak', PatientOperation::whereMonth('created_at', '1')->get()->sum('price'), '#f6ad55' , ['formatted' =>number_format(PatientOperation::whereMonth('created_at', '1')->get()->sum('price') . ' ₺', 2)])
23
                ->addColumn('Şubat', PatientOperation::whereMonth('created_at', '2')->get()->sum('price'), '#237E69')
24
                ->addColumn('Mart', PatientOperation::whereMonth('created_at', '3')->get()->sum('price'), '#F6CE16')

Solution

Try `$parameters->hour=date("H:i:s",strtotime($request->hour));` 

or if you want `$parameters->hour=strtotime(date("H:i:s",strtotime($request->hour)));`            
View solution externally on StackOverflow
Mar 19, 2021 Anyone

0 replies


Install the browser extension

Found this solution helpful? Try our extension for quick solutions to your Laravel errors.

Chrome logo Add to Chrome - It's free