user()->isAdmin(); } public function rules(): array { return [ 'paused' => 'sometimes|bool', 'archived' => 'sometimes|bool', 'repeat_every' => 'sometimes|string|in:DAY,WEEK,MONTH,3MONTHS,YEAR', 'start_from' => 'sometimes|string', 'job' => 'sometimes|string', ]; } }