Kindly assist in factorizing the below code($validatedAttributes). I feel I\'m repeating myself with a lot of code. Newbie in laravel trying to implement DRY practice...