php - Laravel - if condition for select

843

Solution:

i think the solution for your problem can be chained js https://appelsiini.net/projects/chained/ . I am not sure if this works for you. Let me know if it worked.

425

Answer

Solution:

Input::has('brand')

shall return T/F if there is an input field with name 'brand' or not. The line,

Input::has('brand') == 'Volkswagen'

in your logic, evaluates to

true == 'Volkswagen'

Try

@if(Input::get('brand')=='Volkswagen')

People are also looking for solutions to the problem: Connecting PHP with MySQL DB in XAMPP issues

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.