app/Http/Controllers/divisionsController.php
/**
     * Update the specified divisions in storage.
     *
     * @param int $id
     * @param UpdatedivisionsRequest $request
     *
     * @return Response
     */
Update the specified divisions in storage.
@param int $id
@param UpdatedivisionsRequest $request

@return Response
Update the specified divisions in storage . @param int $id @param UpdatedivisionsRequest $request @return Response
public function update($id, UpdatedivisionsRequest $request)
    {
        $divisions = $this->divisionsRepository->find($id);
        if (empty($divisions)) {
            Flash::error('Divisions not found');
            return redirect(route('divisions.index'));
        }
        $divisions = $this->divisionsRepository->update($request->all(), $id);
        Flash::success('Divisions updated successfully.');
        return redirect(route('divisions.index'));
    }
public function update ( $ id , UpdatedivisionsRequest $ request ) { $ divisions = $ this -> divisionsRepository -> find ( $ id ) ; if ( empty ( $ divisions ) ) { Flash :: error ( 'Divisions not found' ) ; return redirect ( route ( 'divisions.index' ) ) ; } $ divisions = $ this -> divisionsRepository -> update ( $ request -> all ( ) , $ id ) ; Flash :: success ( 'Divisions updated successfully.' ) ; return redirect ( route ( 'divisions.index' ) ) ; }
Update the specified divisions in storage.
Update the specified divisions in storage .