betawax / role-model

Advanced models for Laravel's Eloquent ORM
MIT License
15 stars 2 forks source link

stripos not a string #4

Open KuenzelIT opened 10 years ago

KuenzelIT commented 10 years ago

If you specify rules in form of an array like

'name' => array('required','regex:/[a-z]*/')

you get an exception, because stripos tries to replace ": id:" in a string, but finds an array.