app/Http/Requests/SmartphoneRequest.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 [
        'tss_sample_id' => 'required',
        'avg_sleep_mode_id' => 'required',
        'observation_id'=> nullable(),
        'esim' => 'required',
        'power_of_lock' => 'required'
        ];
    }
public function rules ( ) { return [ 'tss_sample_id' => 'required' , 'avg_sleep_mode_id' => 'required' , 'observation_id' => nullable ( ) , 'esim' => 'required' , 'power_of_lock' => 'required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .