Support the ongoing development of Laravel.io →
Input Views Forms

i wanna make a condtion in my select tag in collective html

example iam get the tags from database but if the post havent any tag i wanna display message no tags

i tried this and dont work

            {!! Form::select('category_id', $category ? $category :'no category' ,null,['class'=>'form-control']) !!}

any onr did this before ?

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.