app/Http/Requests/API/RequestUser.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 [
            'activities_time'=>'required',
            'description'=>'required|max:255',
            'activities_status'=>'required|max:255',
            'subjects_details'=>'required|array',
            'subjects_details.*'=> 'integer|exists:projects,id'
        ];
    }
public function rules ( ) { return [ 'activities_time' => 'required' , 'description' => 'required|max:255' , 'activities_status' => 'required|max:255' , 'subjects_details' => 'required|array' , 'subjects_details.*' => 'integer|exists:projects,id' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .