app/Http/Controllers/ActivityController.php
/**
     * Update the specified resource in storage.
     *
     * @param  App\Http\Requests\StoreUpdateActivityRequest $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(StoreUpdateActivityRequest $request, $id)
    {
        if (!$activity = $this->repository->find($id))
            return redirect()->back();
        $activity->update($request->all());
        return redirect()->route('activities.index');
    }
public function update ( StoreUpdateActivityRequest $ request , $ id ) { if ( ! $ activity = $ this -> repository -> find ( $ id ) ) return redirect ( ) -> back ( ) ; $ activity -> update ( $ request -> all ( ) ) ; return redirect ( ) -> route ( 'activities.index' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .