App\Http\Controllers\NoticesController::update PHP Method

update() public method

Update the specified resource in storage.
public update ( integer $id ) : Response
$id integer
return Response
    public function update($id)
    {
        $data = \Request::all();
        $this->json_or_dd($data);
        $notice = Notice::find($id)->fill($data)->save();
        $this->json_or_dd($notice->toArray());
    }