Skip to content
Advertisement

Redirect route with two parameters in WITH [Laravel]

I have problem to pass two varialbles with “with” in Redirect::route… Here is my code…

How to do this

JavaScript

Here is error:

Undefined variable: cartItems (View: C:xampphtdocslaravel-webshoplaravelappviewscart-success.blade.php)

JavaScript

CONTROLLER

JavaScript

View

JavaScript

Advertisement

Answer

You may try this:

JavaScript

Or this:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement