app/Http/Controllers/CourseLessonController.php
/**
     * Update the specified lesson in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
Update the specified lesson in storage.
Update the specified lesson in storage .
public function update(CourseLessonRequest $request, $id)
    {
        CourseLesson::find($id)->update($request->all());
        return redirect()->to('lesson/index/' . session()->get('courseID'))->with('edit', 'The selected lesson has been updated');
    }
public function update ( CourseLessonRequest $ request , $ id ) { CourseLesson :: find ( $ id ) -> update ( $ request -> all ( ) ) ; return redirect ( ) -> to ( 'lesson/index/' . session ( ) -> get ( 'courseID' ) ) -> with ( 'edit' , 'The selected lesson has been updated' ) ; }
Update the specified lesson in storage.
Update the specified lesson in storage .