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');


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3hIUlfg
via IFTTT

Aucun commentaire:

Enregistrer un commentaire