Question: I want to split my string based on elements of a list but I am not sure how to do it.

```
    string = "IwenttotheParkToday"
    my_list = ["went", "the", "today"]

    Desired Output:
    [I, went, to, the, park, today]

```

Answer: 
In your Store function you have used this `$abouts = new about;`
Are you doing the same in update functions? then it will be a new instance.

Adding Validations may help you know the reason why it's not getting updated.

`\Log::debug('message');` can also be useful if you still don't get the issue after putting validations.

```
public function update($id, Request $request)
{
    //you can pass $id of the record which you want to update or even pass it along with the other request parameters.
    $task = Task::findOrFail($id);

    //validate the request( would suggest to do the same in your store function too. )
    $this->validate($request, [
        'title' => 'required',
        'description' => 'required'
    ]);

    $input = $request->all();

    $task->fill($input)->save();

    Session::flash('flash_message', 'Task successfully added!');

    return redirect()->back();
}

```
The best solution is to test it first if you are getting data in the request or not using `dd()` method. OR

you can try this:

```
public function update(Request $request)
{
    if($request->isMethod('PUT')){

        //in this section all code are same as like as my store controller

        $abouts->update();
        return view('admin.about',compact('abouts'));
    }

}

```

or you can remove that if condition and try

```
public function update(Request $request)
{

        //in this section all code are same as like as my store controller

        $abouts->update();
        return view('admin.about',compact('abouts'));

}

```