mercredi 7 septembre 2016

stucture of the methods of redirect and laravel

as you know we can send data as well as route changing through redirect .. the impotant thing is with such a class how can we define methods whose operation orders are changable

as in here calling : return redirect(route_name);

i want the redirection happen .. but by calling the following code :

 return redirect(route_name)-> with(key,value);

the operation that redirect() must do changes and lets the method recieve that data and then it redirects .. while if you only use redirect() it promptly redirects .. how can we implement a mechanism for methods so their operations change ?

Aucun commentaire:

Enregistrer un commentaire