vendredi 29 juillet 2016

What is the differnece between these two back() methods in laravel 5.2?

I have tried both the back methods but i don't know which one is better or what is the difference between them.

function foo(Request $request){

    /*1st back method*/
    return back();

    /*2nd back method*/
    return redirect()->back();

}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire