vendredi 27 mai 2016

How to send a value to route in laravel

I want to send a value to route that i am received from the controller.!How can i do it.

My controller:

public function payment_history($id)
    {   
        $payment_details=AmountDrvPaidHistoryModel::where('driver_id',$id)->get();

        return view('admin.driver_payment_history')->with('payment_details',$payment_details)->with(array('id'=>$id));
    }

Here is my blade:

<form action="" method="post"> 

How can i get the value of id in action tag that is send to another route.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1ORgz8x
via IFTTT

Aucun commentaire:

Enregistrer un commentaire