View displays success message twice

Posted 7 months ago by larasande

So I did a simple Laravel CRUD, and whenever I try to update a record, it displays the success message I have set twice and I can't seem to figure out why. Can anybody help me here?

This is the code for my store function:

public function store(InterestCreateRequest $request)
    {
        // associative array
        Interest::create(['lastName' => $request->lastName,
                          'firstName' => $request->firstName,
                          'email' => $request->email,
                          'interest' => $request->interest
                         ]);

        return redirect('interest')->with('success', 'Volunteer successfully created');

    }

Please sign in or create an account to participate in this conversation.