app/Http/Controllers/WorkerController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Worker  $worker
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, Worker $worker)
    {
        $worker->block = $request->input('block');
        $worker->save();
        return redirect()->back()
            ->with('success','Article updated successfully');
    }
public function update ( Request $ request , Worker $ worker ) { $ worker -> block = $ request -> input ( 'block' ) ; $ worker -> save ( ) ; return redirect ( ) -> back ( ) -> with ( 'success' , 'Article updated successfully' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .