lundi 4 janvier 2021

Redirect to the another page in laravell app

I have the following code below in which at the end of code i want it to redirect it to another. So, how could i achieve that.

public function edit($id)
{
    $data['menu'] = 'request_payments';

    $data['request_payments'] = $request_payments = RequestPayment::find($id);

   ////// some code here
    return view('admin.RequestPayment.edit', $data);

   // at that point i want it to redirect me to return redirect('admin/request_payments');
}

i also want that edit function to redirect it to the following so how i could do it. Please help me.

 return redirect('admin/request_payments');


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire