A boolean TRUE value is converted to the string "1". Boolean FALSE is converted to "" (the empty string). This allows conversion back and forth between boolean and string values.
@nikocraft - No, you don't need to do that. What @tomopongrac said is really what you need. It's a lot simpler to just cast it in your model and do this: {{ $post->published ? 'true' : 'false' }}.