Laravel validation no space allowed for username
<p>I have a little problem in laravel validation request. I want to reject username with space like <code>foo bar</code>. I just want to allow <code>foobar</code> without space. Right now my rule is <code>required|unique:user_detail,username</code>. What rule should i use? thanks</p>