Alternative way to define rules in laravel