Answers for "laravel float type"

PHP
1

laravel validation types for float

//For float, must use numeric validator

/**
  * Get the validation rules that apply to the request.
  *
  * @return array
 */
public function rules()
{
  return [
    'field' => 'numeric'
  ];
}
Posted by: Guest on January-14-2021
0

show float laravel blade

<td>{{ number_format($variable_name->price, 2) }}</td>
Posted by: Guest on December-22-2020

Browse Popular Code Answers by Language