Have you ever been working with a Laravel array and thought, “I really wish there was an Arr::after() method right now” ? I did — so I submitted a PR to Laravel core. The idea was simple: a helper that returns the element immediately after a given value in an array. The PR didn’t make it into the framework, which is completely understandable. Laravel intentionally keeps the core lean, and not every utility belongs there. Instead of dropping the idea, I added it to my package: Laravel Arr Extended . Introducing Arr::after() With Laravel Arr Extended , you can now do this: use GulfarazArshad\LaravelArrExtended\Arr ; Arr :: after ([ 'a' , 'b' , 'c' ], 'a' ); // 'b' Enter fullscreen mode Exit fullscreen mode It also supports wrap-around behavior: Arr :: after ([ 'a' , 'b' , 'c' ], 'c' , wrap : true ); // 'a' Enter fullscreen mode Exit fullscreen mode It works with associative arrays too: Arr :: after ([ 'x' => 'a' , 'y' => 'b' ], 'a' ); // 'b' Enter fullscreen mode Exit fullscreen mode Why I Added It I…