One hacker way to do this is to simply embed PHP in your clip template, at least in Laravel 4.0; I migrated an old poorly written project to laravel. Having been so overwhelmed by the amount of problems I encountered and the time constraints, I did not have time to find the best way to do this. I made a bunch of html forms for a total of about 30 thousand lines of code.
<?php $haystack=Session::get('orderInfo.form.conditions',array()); ?>
Then you can normally access your data:
{{in_array('Special Assignments',$haystack)?'checked="checked"':''}}
What worked for me.
NOTE. Just add your 2 cents for documentation. There are better and cleaner ways to do this, as the accepted answer says.
source share