Skip to content
Advertisement

How to add extra parameter in with condition in laravel

I want to add extra parameter type in with condition.

I have no type column in matches table.

JavaScript

Expeacted Out put is:

JavaScript

Advertisement

Answer

If the value of “type” is static you can try something like this:

Add this line (import) at the begging of the file:

JavaScript

Then:

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