$myCourseData['points'] = "1";
$myCourseData['totalPoints'] = "2";
$this->update($myCourseData,$myCourseId);
i wanted to pass points
& totalPoints
from a function to the function update()
and access points
in update()
as $request->points;
.How can i do that? Only points
& totalPoints
are passed from the above function , other params in the update()
function input are getting from somewhere else.
function update($request,$id){
$validator = Validator::make(
$request->all(),
[
'course_id' => 'nullable|integer',
'exam_numbers' => 'nullable|integer',
'points' => 'nullable|integer',
'subscription' => 'nullable|boolean',
'totalPoints'=>'nullable|integer'
]
);
$points = $request->points;
}