no I wanna use validation's Role class here is $rules = [ 'description' => 'required|max:250', 'remote' => 'boolean', 'address' => 'required_if:remote,==,false', 'solary_currency' => \Role::in(['rub', 'usd', 'som']), 'solary_type' => \Role::in(['month', 'week', 'day', 'all_day', 'hour']), 'solary' => 'numeric' ];
Обсуждают сегодня