app/Http/Requests/EquipoRequest.php
/**
	 * Get the validation rules that apply to the request.
	 *
	 * @return array
	 */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
	{
		return [
			'nombre'               => 'required|unique:smartphones',
			'nucelos'              => 'required|numeric',
			'bateria_conversacion' => 'required|numeric',
			'bateria_espera'       => 'required|numeric',
			'bateria_capacidad'    => 'required|numeric',
			'slot_sim'             => 'required|numeric'
		];
	}
public function rules ( ) { return [ 'nombre' => 'required|unique:smartphones' , 'nucelos' => 'required|numeric' , 'bateria_conversacion' => 'required|numeric' , 'bateria_espera' => 'required|numeric' , 'bateria_capacidad' => 'required|numeric' , 'slot_sim' => 'required|numeric' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .