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

}



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

Aucun commentaire:

Enregistrer un commentaire